Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Creating automation between Discovery project to Software project

Eran Roiter August 22, 2024

 

Hey all,

I've set up an automation rule that is supposed to close the "Father" issue, which is linked to several other issues with the "Implements" link type.

My goal is for the "Father" issue to move to "Done" only when all the linked issues are completed. However, the current automation triggers the transition to "Done" as soon as any one of the linked issues is marked as "Done."

Does anyone have ideas on what I might be missing?

Thanks!  image.png

3 answers

0 votes
Eran Roiter September 2, 2024

UP

0 votes
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 22, 2024

Hi @Eran Roiter 

Please post an image showing the audit log details for the rule execution.

Next, what do you mean by "Father issue"?  Is that the Idea in the JPD project?  If so, is this your scenario:

GIVEN an issue exists in a software project
AND that issue implements an Idea in a JPD project
AND all other issues implementing that Idea are Done, Closed, Cancelled, (i.e., completed)
WHEN the issue transitions to Done or Cancel
THEN transition the Idea to Done

Kind regards,
Bill

Eran Roiter August 25, 2024

Thanks for your time!


What you can see below is the first time a linked issue moved to done, while there's one more linked issue that is still in progress status 

 

image.png

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.
September 9, 2024

Hi, @Eran Roiter   

Sorry for the delay in responding as I have been offline for a few weeks.

 

Did you see my earlier questions about what is a "Father issue"?

How well does what I described match your scenario?

 

And...please note well that links are directional, and so your related issues condition could have problems.  That is, the delivery issues have link types of "implements" for the idea.

Your rule could probably flow like this:

  • trigger: issue transitioned to one of your done status values
  • condition: issue type is not an Idea
  • branch: to the specific Idea, using the link type
    • related issues condition: use only JQL to confirm there are no incomplete issues linked to the idea
      • issue IN linkedIssues("{{issue.key}}", "is implemented by") AND statusCategory != Done
    • action: transition the Idea

 

I suggest only using JQL in the Related Issues Condition as that provides precise control of what is tested.  Using the other clauses may not work as expected (as how they are combined is not documented).

 

0 votes
Eran Roiter August 22, 2024

image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events