The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to get sprint name using jira api python

Deleted user
September 10, 2020

I am unable to get Sprint name using custom filed also.please find attached screen shot

 

e1.PNG

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Andy Heinzer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 11, 2020

Hi Vinisha,

I see that you are using some python in order to query the Jira Software Cloud for the sprint name.  But there is a problem in this approach, Sprint name is not an issue custom field exactly though.  Sprint can appear as a field to Jira, but because it's a required system field in Jira Software, it doesn't always behave like other generic custom fields do. Hence it is not necessarily expected to be something that you can query a particular issue directly to find. The sprint field does not typically use the naming convention of customfield_10007 as shown in your screenshot.

There is a REST API endpoint that contains such sprint information. More details on that can be found in the endpoint of GET /rest/agile/1.0/sprint/{sprintId}.

I am not well versed in using python for this purpose.  Is there a particular package or library in which you are using in order to try to make these calls back to Jira Cloud?  Perhaps I can help you work out the python syntax here if I can better understand how we can find what you are looking for here.

Sprint name is also something that can be queried either from the REST API, or by making a JQL search for a specific name.  But it's not like other custom fields on issues in Jira.

Andy

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events