Forums

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

Adding Issue to Sprint via Jira Automation Rule

Benjamin Szwimer November 7, 2023

I am trying to add a jira automation rule to do the following: Once an issue is changed from any status to Revision I would like to move this issue into a specific Sprint. The problem I am facing right now is when selecting a Sprint from the dropdown the Sprint that I want to add it to doesn't exist in the list. It only shows the current sprint and the next sprint (no others). Would like to add it to the Under Review sprint that I have in my backlog. Any help would be greatly appreciated!

Screenshot 2023-11-07 at 4.53.54 PM.pngScreenshot 2023-11-07 at 4.58.48 PM.png

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 7, 2023

Hi @Benjamin Szwimer,

Welcome to Atlassian Community!

Those are just the preset values that are available to the automation. It will not show any sprints that you have on your board since the automation is not aware of the boards within your project. But you can always set the sprint using smart values similar to this:

Screenshot 2023-11-07 at 2.08.25 PM.png 

This is from an automation have that creates issues when a sprint is created. In your case you would need to find the id for your Under Review sprint and assign that to a smart value that you can use to assign the sprint.

To get the sprint id, add an issue to it and then go to the issue detailed view and hover over the sprint. The URL you see at the bottom of the browser will show the id at the end.

Benjamin Szwimer November 7, 2023

Hi @Mikael Sandberg 

thanks for the reply! So I was able to get my sprint id but I am not sure what you are referring to when you say "assign that to a smart value that you can use to assign the sprint" can you explain how I would go about doing that please? Would really appreciate it! Thanks!

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 7, 2023

Add a create variable component to your automation, assign the sprint Id to it and then you can use that variable to set the sprint like this:

Screenshot 2023-11-07 at 2.32.42 PM.png

Screenshot 2023-11-07 at 2.34.44 PM.png

Like # people like this
Benjamin Szwimer November 7, 2023

Thanks so much for the help really appreciate it!

Like Mikael Sandberg likes this

Suggest an answer

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

Atlassian Community Events