Turning Task into Child Task Based on Cloned Epic

Mayra Hernandez January 23, 2024

Hello! 

 

Would appreciate your assistance here. I have a workflow that based on a transition from a "Task" ticket - it creates a closed "Epic" 

 

How can I then turn the trigger issue into a child of the epic.

 

Example flow here:

 

screencapture-myntr-atlassian-net-jira-settings-automation-2024-01-23-17_28_15.png

1 answer

1 accepted

1 vote
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.
January 28, 2024

Hi @Mayra Hernandez -- Welcome to the Atlassian Community!

To set an issue as the child of an epic, you may set that child issue's parent field to the epic's key.  If the "Epic Link" field is still shown you may also use that in the edit issue action.

In your rule, you are creating two issues, thus it is unclear which one is the epic, so I am unable to provide any clearer guidance on how to link the issues.

What is the purpose of the branch to most recently created issue in the rule?

 

Finally, you note creating a "closed epic" and then linking the trigger issue to it as a child issue.  Why do that, as the trigger is not yet completed?

 

Kind regards,
Bill

Mayra Hernandez January 29, 2024

Hi Bill!

 

Thanks so much for your response. Currently, my workflow triggers an Epic (not closed, I misspoke there). Once the Task - is in a certain status.

 

Flow is:

* Issue Type - Task is created manually

* Task is transitioned to "Ready for Sprint" status

* Automation runs from here to create an Epic from the Task 

 

My issue is then making the trigger issue (the Task) a child of the newly created epic - I am having a hard time trying to figure that out if that is possible.

 

Thank you!

Mayra

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.
January 29, 2024

Yes, that should be possible.  This is the minimum steps needed, so please add any others you need.

  • trigger: issue transitioned
  • action: create issue (for the new epic)
  • action: edit issue (This will edit the trigger issue.)
    • select the Epic Link field
    • enter this smart value {{createdIssue.key}}
    • when that appears below the field, select it to use the smart value

I see your rule was also editing the Original Estimate field.  If that is still needed, I recommend doing it at the same time the Epic Link is set.

Mayra Hernandez January 29, 2024

That worked, thank you so much!

Like Bill Sheboy likes this
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.
February 4, 2024

I am glad to learn that helped.  Please consider marking this one as answered to help others find solutions to similar needs faster.  Thanks!

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events