Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use Jira automation to create a child issue of a child issue

koutarou ishibashi
Contributor
October 26, 2023

Create a child issue by filling in the following additional fields
{
"fields": {
"Parent Link" : "{{issue.parent.key}}"
}
}


I want to create a child issue of the created issue.
I want to implement it with one automation
Please lend us your wisdom on how to implement

2 answers

0 votes
Marc - Devoteam
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.
October 27, 2023

Hi @koutarou ishibashi 

You cloud try the following.

{
"fields": {
    "parent": {
        "key": "{{issue.parent.key}}"
     }
   }
}

 

But I'm not sure as I see your rule.

Can you explain in English what all steps are in the current rule?

koutarou ishibashi
Contributor
October 29, 2023

I'm setting up a custom hierarchy.

There are three hierarchy levels: 3, 2, and 1

The parent of 1 is 2 and the parent of 2 is 3

 

Trigger manually at hierarchy level 11.png

 

Custom Fields_10228 is of type Select List (multiple choices).

Repeat the same process for as many as the value of Custom Fields2.png

 

Create a tier 2 Epic below
"Parent Link" : "{{issue.parent.parent.key}}"

3.png

 

I want to create a story that is a subordinate of the Epic I created.

(I want you to tell me how to do it here)

4.png

Marc - Devoteam
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.
October 31, 2023

Hi @koutarou ishibashi 

I don't think this is going to work in the same rule.

As the Story you are creating doesn't know the Epic that is created.

Add an action to re-fetch data

You could look at making 2 log actions between action to create the Epic and the action to create the Story.

Is their information in the log action, you would need to log the information on the issue key and Epic Link.

Then if there is information you should create a variable to log this and use the variable on setting the Epic Link value in the Story

But as I said I don't know if this will work.

0 votes
Michel Neeser
Community Champion
October 27, 2023

Hi @koutarou ishibashi

I think you can achieve your goal with an automation rule like this:

Automation_-_Jira.png

koutarou ishibashi
Contributor
October 27, 2023

Thank you for your answer. because of the special environment it cannot be created that way

As you can see in the image, we have created a new issue and created a child issue of the parent parent with "Parent Link" : "{{issue.parent.parent.key}}".

I want to create a child in the issue I created

jql.pngjql2.png

Michel Neeser
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!
October 30, 2023

-

Michel Neeser
Community Champion
October 30, 2023

@koutarou ishibashi You have to differentiate between sub tasks and child tasks. The parent/child relationship you're referring to applies to sub tasks. But it seems that you want to create a child task below an epic task. So you have to specify the epic link like this:

Automation_-_Jira.png

koutarou ishibashi
Contributor
October 30, 2023

I'm setting up a custom hierarchy.

There are three hierarchy levels: 3, 2, and 1

The parent of 1 is 2 and the parent of 2 is 3

 

At hierarchy level 2, we have succeeded in setting hierarchy level 3 as the parent

 

This is resolved

jql.png

Continuing, I don't know how to set the parent of the issue I created

This problem cannot be solved

jql2.png

Suggest an answer

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

Atlassian Community Events