Forums

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

How I can update the issue sprint based on automation rules?

Francisco August 30, 2024

Here’s a summary of the situation:

  1. Automation Rule: The rule is designed to interact with specific dates to set sprint based on certain conditions.

Also, Im not sure what are the sprints that are showing on that dropdown.



2 answers

0 votes
Mikael Sandberg
Community Champion
August 30, 2024

Hi @Francisco,

Welcome to Atlassian Community!

The values that you see when setting the sprint on an issue is not tied to the project the issue lives in, this is so that you can have issues in different projects being added to the same sprint. And this is why in the automation when you are trying to set the sprint you will see Active sprint (xxx) and Next sprint(xxx).

In order to set the exact sprint that you see on the board in your first screenshot you need to know the sprint Id, similar to what I do in this automation that creates recurring tasks when we create a new sprint

Screenshot 2024-08-30 at 2.59.07 PM.png

In your case since the sprints already exists you can either have a component that creates the smart value and sets it to the corresponding sprint Id based on the dates, and then use that smart value to set the Sprint field like I do above. The other option would be to use the REST API to get the next sprints, and then set the smart value to the corresponding sprint based on the date. This would be a bit more complex, but you would not have to go in and modify the automation every time you create a new sprint like you would have to do if you do option one. 

Francisco October 2, 2024

Great! Thanks a lot! For now I've hardcoded the sprint id. Later I can work on a more automated solution. Screenshot attached. Thanks a lot!

 

iScreen Shoter - Google Chrome - 241002172942.jpg

0 votes
Francisco August 30, 2024

iScreen Shoter - Google Chrome - 240830175201.jpgiScreen Shoter - Google Chrome - 240830175123.jpgiScreen Shoter - Google Chrome - 240830174841.jpg

Francisco August 30, 2024

I need to automate the sprint field based on the due date of the issue

Suggest an answer

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

Atlassian Community Events