steves / node-jira

A nodejs wrapper for the JIRA REST API
378 stars 169 forks source link

Problem with JQL request #114

Closed kevincaradant closed 8 years ago

kevincaradant commented 9 years ago

Hi everyone,

I'm trying to use search query but i can't have the result as i want.

i'm trying that :

jira.searchJira(req.body.requete, null, function(test, body) { //console.log(body); res.send(body); });

and req.body.requete = "?jql=key=RAV-56" , the problem is here, all cards are returned in JSON ( 200 000 results) like if jql=' ' because by defaults if jql is empty , all the results appear , so how is it possible to success a request with jql :/.

Thank you

leonzinger commented 8 years ago

@kevincaradant as it seems from source code it's jql by default, just remove the jql= from your query

kevincaradant commented 8 years ago

Sorry i totally forgot to answer you. I close this issue, thank you for your answer ;)