Forums

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

Automation to add the name of the open sprint to a label

Bruno Leite Cervantes July 15, 2024

Hello there! I'm trying to create an automation to add a label in all issues that are part of the sprint after the sprint starts. I'm using "When Sprint Started" as a trigger, and the automation is running successfully, but I can't get the name of the sprint - it's like the issues has no sprint assigned right after the sprint is started. Is there a way to get the name of the sprint using the "When Sprint Started" trigger? Here's the automation for the ones who can help. Thanks!

Kindly Regards,

Brunoimage (7).png

image (8).png

image (9).png

image (10).png

1 answer

1 vote
Trudy Claspill
Community Champion
July 15, 2024

Hello @Bruno Leite Cervantes 

Welcome to the Atlassian community.

You are using the wrong smart value in your Create Variable action.

Take another look at the text in the Sprint Started trigger. It tells you the smart value to use to get the name of the sprint that triggered the rule.

Screenshot 2024-07-15 at 1.15.31 PM.png

Bruno Leite Cervantes July 15, 2024

Thanks. Trudy. I saw that. But does it work in case we have issues with more than one sprint? I had the same problem before, that's why I'm using the sprint.first.name. I'll try using only sprint.name to see if it works. 

 

Regards,

Bruno

Like John Funk likes this
Trudy Claspill
Community Champion
July 15, 2024

It should work in this case because the rule trigger is Sprint Started. In the context of that rule {{sprint}} refers to the sprint that was started and triggered the rule.

In other rules triggered by other events the context would be different.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events