Forums

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

How to automatically update fix version?

Arthur Bershadskiy March 8, 2021 edited

Hello,

 

I'm trying to set up rules to automatically create fix version when a sprint is started and assign them to the tickets in the sprint. I managed to get that part to work but now I'm working on the cases where a ticket is moved into an active sprint. I'm also trying to make it assign the fix version to subtasks when this happens.

 

I have this rule set up but for some reason it doesn't work all the time. If I create a new ticket in the backlog and move it to an active sprint, it will work. I think if a ticket was part of a previous completed sprint and was carried over, it causes some issues.

 

Screen Shot 2021-03-08 at 5.51.20 PM.png

1 answer

1 accepted

3 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2021

Hi @Arthur Bershadskiy 

Those old values in the sprint field help in some cases and not in others...

How about this: rather than test on isStarted use a JQL condition test for the triggerIssue Key and sprint in openSprints()

Also, how do you know which version to assign?  Are you always using earliestUnreleasedVersion() or is it somehow aligned to the names of your sprints?  If it is the second case your solution may need to be a bit more complex.

Best regards,

Bill

Arthur Bershadskiy March 8, 2021

Hi Bill,

I'm playing around with sprint in openSprints() now and I think maybe that might end up being the way to go. Thanks again for making my life easier!

 

I am using the sprint name as the version name because it solves more problems than the other way. I think I still have to fix a few edge cases but I'm on my way now.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events