Get sprint issues added/dropped through API

I need to get through Jira API some statistics about sprints. Specifically:

  • Issues initially included in the sprint when it started
  • Issues added after it started
  • Issues removed after it started.

I have been googling this for a couple of hours and couldn’t find anything.

Is it possible to get this information through APIs?

Hello @ErnestoCastro

There is no REST API endpoint that can provide that, since there is no direct record of an Issue’s Sprint membership ‘history’ that you can just lookup.

You could query the Get Issues for Sprint endpoint before the Sprint starts to know what Issues it contains, but you would need to cache / store that dataset then constantly query that endpoint during the Sprint’s execution to compare against your base dataset to know if Issues are being added or removed. Not an elegant solution.

The only reliable way to achieve what you want and not have to ‘monitor’ the Sprint as it’s in progress is to search for all the Issues who have events in their changelog that show their Sprint being changed, then compare the timestamps of those events against the timeline of the duration of the Sprint and determine if they overlap. Not a trivial solution, but doable.

1 Like

Thanks @sunnyape . That is what I thought, but I wanted to double check.

I think I will go with the option to get the issues changelog and keep track on when each sprint was added/removed and do some processing to have initial scope + add/removes for each sprint.

When you view the Sprint Report it puts an asterisk by stories that were added after sprint start. Is there no way to get that same info?