Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can we add a specific Sprint to Automation

I'm creating an Automation to assign new ticket to a specific Sprint (Claims detects for cosiderati) but that option is not available - can this be done?

 

 

 

 

EDMS Active Sprint.jpg

2 answers

1 accepted

1 vote
Answer accepted
Alex Koxaras Community Leader Nov 19, 2021

Hi @Christopher Rampola 

You can do that by using JA as well as a bit of REST api to get the value of your sprint.

First of all you have to acquire the id of your sprint "Claims detects for cosiderati". To do that you have first to get the id of your board. This is located on the address bar of your browser:

boardsprint.png

In the above example the sprint board id is 14.

Next, you have to get the id of your sprint. To do that use the REST api as follows:

https://XXXXXX.atlassian.net/rest/agile/1.0/board/XX/sprint

Replace the XXXXX with your instance and the XX with your board id. Enter that on a new tab on your browser. On the payload that you'll get, locate the name of your sprint and get its id

Finally, go to your rule and when you will try to edit your issue, do not use the predefined fields to edit the sprint. Instead go to the  "More Option" and enter the JSON text as you see it below. Replace of course the number 12 with the id you found from your rest api call.

sprintrule.png

Tested it on my instance and works like a charm. 
Let me know if that did the trick!

Alex Koxaras Community Leader Nov 23, 2021

@Christopher Rampola You do the following to get the sprint id:

Next, you have to get the id of your sprint. To do that use the REST api as follows:

https://XXXXXX.atlassian.net/rest/agile/1.0/board/XX/sprint

Replace the XXXXX with your instance and the XX with your board id. Enter that on a new tab on your browser. On the payload that you'll get, locate the name of your sprint and get its id

I was able to get the id and automation is working!

Thank you!
Chris Rampola

Like Alex Koxaras likes this

Hi @Alex Koxaras ,

Thank you so much for your reply!

I'm new with Jira/Atlassian and still learning. How do I get the sprint name & id from REST api?

I got the instance name and board id.

Thank you in advance!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Next level incident management in Jira Service Management

Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...

1,484 views 20 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you