Using Automation for Jira to setup links between child issues during creation

admin-nwalter
Contributor
December 13, 2023

Hello all,

I've looked through multiple articles and unfortunatly couldn't find one that matched my scenario or could point me in the right direction. This is the scenario.

I have an automation that automatically creates child issues for the Epic that was recently created and adds the Epic as a parent. When you open up the Epic, you'll see all of the child issues, which is good. But what I want to achieve is that the child issues that are created are linked to each other. For example:

Master Ticket 1 has been created. Child issues are

  • Task A
  • Task B
  • Task C
  • Task D
  • Task E
  • Task F

Task B should be linked to Task A. Task C should be linked to Task B. Task D should be linked to C etc etc. 

I tried to achieve this by making making an automation based on the "Issue Created" trigger and with the condition that if an Epic has been created, it will automatically create these child issues. Between each child issue, I added a "Re-fetch Issue data" action and then a "Link issue" action, hoping I could link the issue with the most recently created one. I also tried linking it based on the summary, but both options failed. I used the blocked by and related to links, to no avail. 

 

Is there a way that I can achieve this using automation? The goal actually is that these tasks need to be taken cared of by different departments and need to be closed in a specific order. So when Task A is done, only then can Task B proceed.  

 

2 answers

1 accepted

2 votes
Answer accepted
admin-nwalter
Contributor
December 14, 2023

I found a way to do this, but I cannot close this case myself unfortunately.

Nicole.Selph July 3, 2024

@admin-nwalter would be really interested in how you solved this as I am trying to do the exact same thing and having trouble getting it to work. Are you able to share a screenshot of your rule?

admin-nwalter
Contributor
July 9, 2024

Dear @Nicole.Selph , please check the answer I've given Margolles and please check if this applies to you as well?

0 votes
margolles January 18, 2024

Hi admin-nwalter,

could you share how did you solve that issue? I am trying exactly the same.

 

Thank you!

admin-nwalter
Contributor
July 9, 2024

Hello @margolles 

 

Apologies for the late reply. I will try to explain as clear as possible. This is what worked for my scenario.

There are actually multiple rules as I had to notify multiple departments within the company, but I'll try to keep it at one rule and you can make changes where ever needed.

Screenshot_1011.png

 

As you can see, what I have done is that I have created several child tickets. Each child issue in this automation rule has the "Parent" field that is set to the trigger issue, which is the Epic in this case. After each "Create Task" action, I created another action that creates a variable. After the second variable, I created a branch that checks the most recently created issue and then links it to the variable that I made earlier in the automation. 

By doing it in this order, it allows you to create the child issues that are linked to the Epic, but also are linked to each other in the order that you put the automation. Example:

  • If: Issue Type equals Epic
  • Then: Create a new Task "Team1" with the Parent field set to Trigger Issue
  • And: Create a Variable {{Team1}}
  • And: Create a new Task "Team 2" with the Parent field set to Trigger Issue
  • And: Create a Variable {{Team2}}
    • Branch: For Most recently created issue
    • Then: Link issue (is blocked by {{Team 1}}"
  • Then: Create a new Task "Team 3" with the Parent field set to Trigger Issue
  • And: Create a Variable {{Team3}}
    • Branch: For Most recently created issue
    • Then: Link issue (is blocked by {{Team 2}}"

By following this pattern, you'll be able to create a link between the task tickets. Please let me know if this helped fix your issue.

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