relating stories in different rules

WHALES AJIBOLA
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!
November 14, 2024

I created rule 1 using issue created trigger to create Story A and also create story B

 

then a second rule using issue transition such that when story B transition to done then story b is created 

 

in a 3rd rule when B transitions to done C gets created.

 

and in the 4th rule when C transitions to done Story D gets created. How do i make C and D relate back to A using the relates to issue link

1 answer

0 votes
Humashankar VJ
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.
November 15, 2024

Hi @WHALES AJIBOLA 

Can you give a try with the below rule design and see if it helps.

Automation Summary

  • Rule 1: Create Story A and Story B.
    • Save Story A’s key in Story B (Parent Story Key field).
  • Rule 2: When Story B transitions to Done, create Story C.
    • Copy the Parent Story Key from Story B to Story C.
  • Rule 3: When Story C transitions to Done, create Story D.
    • Copy the Parent Story Key from Story C to Story D.
    • Link Story C to Story A using the Parent Story Key.
  • Rule 4: When Story D transitions to Done:
    • Link Story D to Story A using the Parent Story Key.

Rule Design:

Trigger: Issue Transitioned

If: Issue transitioned to Done

Conditions:

  - Condition: Parent Story Key is not empty

Actions:

  - Create Issue:

      Project: {{issue.project.key}}

      Issue Type: Story

      Summary: Story D

      Parent Story Key: {{issue.Parent Story Key}}

  - Create Issue Link:

      Link Type: relates to

      Inward Issue: {{issue.key}}

      Outward Issue: {{issue.Parent Story Key}}

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

 

Suggest an answer

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

Atlassian Community Events