我开始使用JIRA REST API。我已经学习了如何将所有问题分配给当前用户:
rest/api/2/search?jql=assignee=currentuser()
...现在我正在尝试按当前的sprint过滤那些。我认为此功能是由JIRA Agile(Greenhopper)插件提供的,但是我找不到有关它的任何文档。我遇到了一些有趣的数据,这些数据似乎是问题分配到的Sprint的标识符:
customfield_10005: [
"com.atlassian.greenhopper.service.sprint.Sprint@3094f872[rapidViewId=30,state=CLOSED,name=Sprint 2014-06-02,startDate=2014-06-02T00:00:37.672-07:00,endDate=2014-06-08T11:59:00.000-07:00,completeDate=2014-06-09T10:23:13.983-07:00,id=45]"
]
...但是看起来就像是一堆乱七八糟的东西。如何查询分配给当前冲刺的问题?
最佳答案
您正在寻找的方法是openSprints()
它仅适用于JIRA Agile 6.5或更高版本。
//*编辑:Greenhopper被重命名为JIRA Agile *//
方法定义为:
Search for issues that are assigned to a Sprint which has not yet been completed. (Note that it is possible for an issue to belong to both a completed Sprint(s) and an incomplete Sprint(s).)
所以这应该对你有用
assignee in (currentUser()) AND sprint in openSprints()
问候
关于jira - 如何使用JIRA REST API为当前用户获取分配给当前sprint的JIRA Agile问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25210004/