I've been trying to get issue information via the rest API but sprint isn't returned as a field. I tried just searching for a sprint to get all the issues
/rest/api/2/search?jql=sprint={sprintid}
I tried only returning certain fields including Sprint:
/rest/api/2/search?jql=sprint={sprintid}&fields=description,issuetype,status,sprint
When I use JQL in the Jira Issue search I can search for sprint {sprintid} then customize the Column list to show Sprint.
Same thing if I search for a specific issue. It doesn't return the sprint the issue is in.
Is this expected?
Hi @jodywhite
Due to the fact you are using API for this, you are required to use the customfield_ID for this.
The default ID for field Sprint = customfield_10020
/rest/api/2/search?jql=sprint={sprintid}&fields=description,issuetype,status,customfield_10020
Got it. I did see that, but I was expecting there to be a field just for Sprint. I didn't think I would have to parse through a list to get the sprint name.
After I posted this question I found this also: https://jira.atlassian.com/browse/JSWSERVER-9928.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.