Forums

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

Automatically link a story in a "release ticket" when the status is "Done"

Julien VODUY June 4, 2024

Hello,

I would like to automatically link a story with a Release ticket when I change the status of the story to DONE

To select the right release ticket, it will need to have the same labels as the story and still be open

Could you help me with this one ? I am new with automation, and this will help me a lot

Thanks in advance

1 answer

0 votes
Kalyan Sattaluri
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.
June 4, 2024

Hello @Julien VODUY 

This is a straight forward rule and good candidate for your to implement. Only tricky thing is to find the exact release ticket. Do you want labels to match exactly or is any one of them enough? If any of them is enough, below lookupIssues JQL should work.. 

  • Create new rule with trigger = Issue transitioned, choose done.
  • Next add an If condition => Issue fields check => Issue Type = Story or Defect
  • Next Action -> lookupIssues => JQL = issuetype = story and labels in ({{labels}}) and status not in (done, cancelled)
  • then Link issues and use {{lookupIssues.key}}

Please put this together, run the rule and share audit log if issues. Thanks!

Julien VODUY June 4, 2024

Hello @Kalyan Sattaluri 

Thanks for your quick answer,

I am not sure about the last action, I don't have a lot of options for the Link issues action

Capture.PNG

Kalyan Sattaluri
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.
June 4, 2024

Hello @Julien VODUY 

Yes, there are not much options in link issues. You just choose the link type and for issue you use smart value. Please see my screen shot:

image.png

 

Also, can you modify your lookupIssues JQL as below:

issuetype = story and labels in ({{labels}}) and status not in (done, cancelled) and key != {{key}}

Because earlier JQL was including the trigger issue and we dont need to link the issue to itself. So please try and share updates. 

Thanks!

Julien VODUY June 4, 2024

Hello @Kalyan Sattaluri 

 

I can't enter a custom type on the link issues actions

Capture.PNG

 

 

Kalyan Sattaluri
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.
June 4, 2024

Hello, in that drop down, just type {{lookupIssues.key}} and select in from dropdown and it will look like my screenshot. Its confusing but you can copy paste or type in that field even though it looks like you have to choose from dropdown.

Julien VODUY June 5, 2024

Hello @Kalyan Sattaluri 

Thank you for your help ! 

It's almost working :) 

Capture.PNG

My problem now is that it linked all the release ticket that contains at least one of the Story label

This is my case : 

Story (Label A, Label B)

Release (Label A, Label C)
Release (Label A, Label B)
Release (Label A, Label D)

For now, the story was linked to the all 3 Release.
I just want it to be link with the second one (Label A and label B)

 

Suggest an answer

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

Atlassian Community Events