How do I retrieve issues of specific status with JQL

谁都会走 提交于 2019-12-04 13:47:22

Use URL encoding on the attributes.

Perhaps use an online tool like this to URL encode your JQL from this:

project = PROJECTKEY AND status = Closed

to get 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 will be all closed issues.

Run the query you want in the Issue Navigator. Use the link to the left of the Share button that resembles a chain link to find the URL for the query, e.g.

http://jira.example.com/issues/?jql=project%20%3D%20MDOAR%20and%20status%20%3D%20Closed

Use that URL with curl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!