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

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events