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()
...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?
Additionally you learn how find issues in a specific project which are at the same time contained in a sprint. Searching for issues is easy - you can navigate to "Filters" >> "Advanced issue search" from within your Jira instance.
The Parallel sprints feature lets you enable multiple active sprints that are running in parallel with each other. For example, if you have two teams working from the same backlog, each team can now work on their own active sprint simultaneously.
The Jira Software and Jira Service Management applications have REST APIs for their application-specific features, like sprints (Jira Software) or customer requests (Jira Service Management). If you haven't used the Jira REST APIs before, make sure you read the Atlassian REST API policy.
There is no feature for this currently. You could set up an Automation rule to send an email when a sprint is started, and in that message include the person who triggered the rule.
The method you are looking for is
openSprints()
Its only working with JIRA Agile Version 6.5 or higher.
//* EDIT: Greenhopper got renamed to JIRA Agile *//
The method definition is:
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).)
So this should work for you then
assignee in (currentUser()) AND sprint in openSprints()
Regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With