Forums

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

advanced automation

Boris Gaiman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 30, 2023

Hello,

I would like to automate  the following scenario.  There are 3 issues.

Issue 1 -> 'blocks' Issue 3 AND 'is blocked by' Issue 2

Issue 2 -> 'blocks' issue 1 AND 'blocks' issue 3

Issue 3 -> 'is blocked by' Issue 1 AND 'is blocked by' Issue 2

When an issue is transitioned to 'Done', I would like to remove the 'blocks' issue link AND transition all issues that were blocked as long as they are not blocked by other issues.  Given my scenario above, when Issue 2 is transitioned to 'Done', its blocks for Issue 1 and Issue 3 are removed, but only Issue 1 is transitioned since Issue 3 is still blocked by Issue 1.

I was able to set up an automation rule to remove the 'blocks' issue link.  I was also able to set up 2 different automation rules to achieve this (one triggers on 'issue transitioned' and the other triggered on 'issue link deleted').  Can this be done with just one automation rule?  I ran into a bit of a difficulty creating the condition for 'no more blocks left'.

Thanks,

Boris

1 answer

1 accepted

0 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.
August 30, 2023

Hi @Boris Gaiman 

I believe its possible to create a JQL statement to return issues which are blocking (using link type), and so that could be used with the Lookup Issues action.  Then you could test that the remaining blocking count is 0 with an advanced compare condition on:

{{lookupIssues.size|0}} equals 0

Kind regards,
Bill

Boris Gaiman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 31, 2023

Hello @Bill Sheboy

Thank you for your suggestion.  I experimented a bit more with my automation rule and was able to get it to work.

 

Thanks,

Boris

 

Screenshot 2023-08-31 160908.png

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events