我正在使用JIRA REST API,我想查询处于"已解决"状态的所有问题.状态字段如下所示:
"status": { "self": "https:\/\/jira.atlas.xx.com\/rest\/api\/2\/status\/5", "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "iconUrl": "https:\/\/jira.atlas.xx.com\/images\/icons\/statuses\/resolved.png", "name": "Resolved", "id": "5", "statusCategory": { "self": "https:\/\/jira.atlas.xx.com\/rest\/api\/2\/statuscategory\/3", "id": 3, "key": "done", "colorName": "green", "name": "Complete" } }
目前知道这样做的唯一方法是查询status = 5.最好使查询更直观,并使用字符串"已解决"状态查找所有问题.这是我正在使用的查询:
https://jira.atlas.xx.com/rest/api/2/search?jql=project=MYPROJECT and status=5 and fixVersion=15824&fields=id,key,description,status
是否可以查询状态名称?