How to set the sprint when creating an issue?

Ideally, I would like to set the sprint to which an issue should be assigned when creating the issue. Unfortunately, adding the Sprint field to a screen just gives you a plain textfield, in which -so it seems- a technical id can be filled out; a value that cannot be guessed by a regular user. So that does not seem to be an option.

Another option would be to have an issue be assigned to a certain (say "the last") sprint automatically when creating an issue. But that seems undoable as well.

Is any of this possible and if so, how?

1 answer

1 accepted

2 votes
Accepted answer


Currently the Sprint Field uses numbers to refer to a Sprint name on GH. We do not advise users to make changes on the field as it is easy to mess things up on GH.

Although if you still want to do such changes you can use the following java script to get the Sprint ID:

The easiest way to get the Sprint ID is to copy and paste the following in to the address bar while you're on the Work mode of a Rapid Board

javascript:alert("Sprint ID is " + jQuery("SPAN[data-sprint-id]").attr("data-sprint-id")

What you need to do is the following:

  1. check the Sprint ID on GH by using the JavaScript;
  2. Create the Issue and add the correct Sprint ID;

Your issues will be sent straight way to the Sprint.

I hope it helps you!

+1 for the inventive solution, but unfortunately not one that I'm going to be able to explain to the acceptance testers. :)

Accepted, because it is clear that it is not possible to do as one would expect.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

953 views 3 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you