Forums

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

Transition issue when all linked issues of certain linked issue type are marked as closed

Richard A_ Michaels
Contributor
August 2, 2023

I run a nightly automation which select all the issues in the project which are in a certain state (In Progress) which also have linked issues of type "causes". 

I need to determine if all the linked issues of type "causes" are closed and therefore transition the main issue to the next status

1 answer

1 accepted

2 votes
Answer accepted
Tomáš Vlach
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 2, 2023

Hi @Richard A_ Michaels

Are you using special link type for the issue type Cause? Are there any other Issues linked by the same link type other than Cause? If not it should be straight forward. 

image.png

After this condition just put Action - Transition the issue to the next status.

 

Tom

Richard A_ Michaels
Contributor
August 3, 2023

Hi Tom,

I'm checking for the specific linktype, "causes".

The type of issue, "bug", "story","task" is not a factor

Tomáš Vlach
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 3, 2023

Then if you put link type: causes - it checks only issues that are linked by this type - which in your case is only Cause and with the Condition

issuetype = cause AND status = "closed" it return true only if every Causes which are linked met the condition.

 

After that just put your action - Transion Issue and it should work right away.

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