NextGen: How to create Task/Subtask under an epic automatically

Neetu Verma December 7, 2020

Hi, 

I have a need to automatically clone an Epic and task/subtask under it. Because we can't clone epic I wrote an automation rule. 

so I created Manually trigger rule Where it will create an epic/task and subtask. 

I was able to link Task to EPIC using the following JSON

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

but no matter what I do I can't link subtask to TASK. Help Please

Error I get

Error creating issueGiven parent issue does not belong to appropriate hierarchy (parentId)

1 answer

0 votes
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.
December 31, 2020

Hi @Neetu Verma 

Cloning spanning 2 levels seems easy (epic to task, or task to sub-tasks).  Cloning spanning 3 levels (epic to task to sub-tasks) isn't possible yet with one rule.  There are suggestions to make the cloning of sub-tasks easier: 

https://codebarrel.atlassian.net/browse/AUT-335

https://codebarrel.atlassian.net/browse/AUT-162

You may be able to do it with multiple rules:

  • Your manually triggered rule to clone the epic and the immediate children (tasks, stories), and some values put in fields which you can search for to detect the relationships with JQL
  • Another rule to detect creation of cloned issues, and then link based upon the data you find with JQL.

Please see this post to get ideas how the linking of sub-tasks might be done:

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-clone-a-task-and-its-subtasks/qaq-p/605089

 

Best regards,

Bill

Suggest an answer

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

Atlassian Community Events