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

Jira automation : Creating a linked issue with subtasks

Jean Francois Gelinas
Contributor
May 6, 2022

Greetings !

Here's my problem.  When an issue is created by user, I want an automation to run and create 2 new issues with subtaks in those new issues.  Something like :

Issue A is created by user ....

Issue B is created by automation

  • Subtask B.1
  • Subtask B.2

Issue C is created by automation

  • Subtask C.1
  • Subtask C.2

 

I have no problem creating B and C and linking A, but I'm not able to populate the subtasks under B and C.  Should I use advanced fields in JSON ?  Is it even possible ?

Thanks for your time

5 answers

4 accepted

4 votes
Answer accepted
Jorge Martinez
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.
May 6, 2022

Hi @Jean Francois Gelinas this could work for you. 

Trigger - Issue Creation

Step 1 - Create new issue (B)

Step 2 - Create new issue (C)

Step 3 - Create a branch for all new issues 

Step 4 - Create two subtask per new issue founded


Rule

image.png

Details

Hint: Use smart values to customize your new tasks
image.png image.png image.png image.png


Results

image.png image.png image.png

3 votes
Answer accepted
Ulrika Eriksson
Contributor
May 6, 2022

Create branches in JIRA  automation by using smart values.

2 votes
Answer accepted
Alberto Salvante
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.
May 6, 2022

Hi Jean!

I think you should use branch to archive your purpose.
Here is an example:

Screenshot 2022-05-06 at 18.17.47.png

Hope it helps.

Best,
Alberto

2 votes
Answer accepted
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 6, 2022

Agreed with @Ulrika Eriksson create branches in Jira automation by using smart values.

Jira Automation - Branches 

Jira Smart Values 

0 votes
CJ Edwards
Contributor
May 6, 2022

One potential solution is to have a second automation that is triggered by Issue Creation
IF Link Type "zxy"

Then create that creates the Subtasks for each new Issue created by Automation #1

--- 

Issue A is created by user 

Issue B is created by automation rule #1

Issue C is created by automation rule #1


rule #2 is triggered by the other issues being created

Subtask B.1 created by automation rule #2

Subtask B.2 created by automation rule #2

Subtask C.1 created by automation rule #2

Subtask C.2 created by automation rule #2

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events