问题描述
我现在开始使用JIRA REST API.我已经学会了如何将所有问题分配给当前用户:
I'm getting started working with the JIRA REST API. I've learned how to get all the issues assigned to the current user:
rest/api/2/search?jql=assignee=currentuser()
...现在我正在尝试按当前的sprint过滤那些.我认为此功能是由JIRA Agile(Greenhopper)插件提供的,但是我找不到有关它的任何文档.我遇到了一些有趣的数据,这些数据似乎是该问题分配给的Sprint的标识符:
...now I am trying to filter those by the current sprint. I think this functionality is provided by the JIRA Agile (Greenhopper) plugin, but I can't find any documentation for it. I came across some interesting data which appears to be the identifier for the sprint that the issue is assigned to:
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]"
]
...但是看起来就像是一堆乱七八糟的东西.如何查询分配给当前冲刺的问题?
...but it just looks like a serialized mess. How can I query for the issues assigned to the current sprint?
推荐答案
您正在寻找的方法是
openSprints()
仅适用于JIRA敏捷版本6.5或更高版本.
Its only working with JIRA Agile Version 6.5 or higher.
//*Greenhopper被重命名为JIRA Agile *//
//* Greenhopper got renamed to JIRA Agile *//
方法定义为:
那么这应该对您有用
assignee in (currentUser()) AND sprint in openSprints()
致谢
这篇关于如何使用JIRA REST API获取为当前用户分配给当前sprint的JIRA Agile问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!