jira - How do I retrieve issues of specific status with JQL -


entering url, or running curl, like:

https://<myurl>/rest/api/2/search?jql=project=<myproject>&status=closed&fields=id,key,status,project&maxresults=5 

returns me 5 items in project statuses. reason can't query specific status.

the output (part of it) is:

{   "expand": "schema,names",   "startat": 0,   "maxresults": 5,   "total": 727,   "issues": [     {       "expand": "editmeta,renderedfields,transitions,changelog,operations",       "id": "79577",       "self": "https://<myurl>/rest/api/2/issue/79577",       "key": "<myproject>-774",       "fields": {         "project": {           "self": "https://<myurl>/rest/api/2/project/<myproject>",           "id": "14421",           "key": "<myproject>",           "name": "<myproject>",           "avatarurls": {             (...)           }         },         "status": {           "self": "<myurl>/rest/api/2/status/1",           "description": "the issue open , ready assignee start work on it.",           "iconurl": "https://<myurl>/images/icons/statuses/open.png",           "name": "open",           "id": "1"         }       }     },(...)   ] } 

how query given status? many thanks.

use url encoding on attributes.

perhaps use online tool this url encode jql this:

project = projectkey , status = closed 

to this:

/rest/api/2/search?jql=project%20%3d%20projectkey%20and%20status%20%3d%20closed&fields=id,key,status,project&maxresults=5 

the resulting json closed issues.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -