Forums

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

Sync [relates to] issues' status by automation

Duncan Chen TPE June 1, 2023

I am trying to sync the status of linked issues. However, there is a scenario which I can't avoid to sync the wrong issue. Following is the scenario 

  • The Scope setting is All projects.
  • There are three projects. 
    • Project A
    • Project B
    • Project C
  • There are four issues and all issue types are Task.
    • A-1 (Project A)
    • A-2 (Project A)
    • B-1 (Project B)
    • C-1 (Project C)
      • A-1 is the main issue which include all information
      • A-2, B-1 and C-1 all [relates to] A-1

Following is the steps

  1. When B-1 or C-1 transition the status to Done 
  2. Check if C-1 and B-1 status are both Done. if not, do nothing.
    if yes, transition A-1 status to Done but A-2 should not transition to Done 
    auto.png

Currently, I can't avoid A-2 transition to Done in this scenario. Does anyone know what condition I should put after this automation triggered. Please give me your input.
Thank you

2 answers

1 accepted

1 vote
Answer accepted
Paul O
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 3, 2023

You could try using a related issues condition as shown below.  For your project A, I've used project ACME and for projects B & C, I've used SP and SUP. 

This seems to produce the desired results.

Screenshot 2023-06-03 at 19.14.33.png

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 1, 2023

Hello @Duncan Chen TPE 

Is there a relates to link between A-2 and the issue (B-1 or C-1) that transitioned to Done?

Your Branch is looking at the issues linked to the trigger issue (B-1 or C-1) by the relates to link.

It is then checking if that linked issue matches the JQL project in (B, C) and status = Done. That is not a check confirming that the B-1 and C-1 issues are in a Status of Done.

If the linked issue (linked to the trigger issue B-1 or C-1 by the relates to  link) matches the JQL (in project B or C and already set to a status of Done) then it will transition the linked issue to the status of Done.

So, I'm not sure how this rule could be changing the status of issue A-2.

Can you provide the rule's Audit Log details for the execution that changed the status of A-2 to Done?

Duncan Chen TPE June 1, 2023

Hello @Trudy Claspill,

Thank you for your reply.

Is there a relates to link between A-2 and the issue (B-1 or C-1) that transitioned to Done?

->No, Only B-1 or C-1 transitioned to Done will trigger this automation

It is then checking if that linked issue matches the JQL project in (B, C) and status = Done. That is not a check confirming that the B-1 and C-1 issues are in a Status of Done. 

-> if so, what JQL I should put after branch relates to if I'd like to check both linked issues of project B and project C are both in a status of  Done.

Thank you

Suggest an answer

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

Atlassian Community Events