Forums

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

Not able to clone subtask by using this tutorial.

Vincent Larouche
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!
June 17, 2025

Hello,

I would like some help with an automation rule I’m trying to set up in Jira.

I’m able to successfully clone the main task, but the associated sub-task is not being cloned.

I’ve followed the steps outlined in the following article, but I haven’t been able to make it work:
How to clone tasks/stories along with their sub-tasks – Atlassian Support

Could you please help me identify what might be preventing the sub-task from being cloned properly?

I have the following error: 

06/17/2025, 14:54:17Manually Duplicate Task and Child WeeklySOME ERRORS3.68sShow less
Manual trigger from work item06/17/2025, 14:54:17
Expand
Clone work item06/17/2025, 14:54:17
Expand
Create variable06/17/2025, 14:54:19
Comment on work item06/17/2025, 14:54:19
Expand
BRANCH
Collapse
Expand
Clone work item06/17/2025, 14:54:20
Collapse
Unknown fields set during clone, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -
Linked Issues (issuelinks)
Unable to create work item
Could not find issue by id or key. (parent)
Issue was created successfully, however some unexpected errors occurred -
INVALID_COMPONENT_CONFIGURATION

Thank you in advance for your support!

2 answers

1 vote
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.
June 17, 2025

Hi @Vincent Larouche -- Welcome to the Atlassian Community!

Even though you are following a knowledge base article, context is important for the community to help.  Please post the following:

  • what version of Jira are you using: Cloud, Server, or Data Center
  • for Cloud, what type of project is this: company-managed, team-managed, JPD, etc.
  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution

Until we see those...

 

Based upon what you show thus far, you may be trying to copy work item links (i.e., issue links) directly from one work item to another for the subtasks.

While an automation rule can usually create a work item with a single link in one project, creating multiple links or links to other projects will not work easily.

Do your subtasks have either multiple links or links to work items in other projects?

 

Kind regards,
Bill

Vincent Larouche
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!
June 18, 2025

Hi Bill, here's the answer of your last questions and at the end all tasks and setup information.

Based upon what you show thus far, you may be trying to copy work item links (i.e., issue links) directly from one work item to another for the subtasks.

*** The intend is to copy a task and all his subtask, the subtask will be linked to a single parent this way:

Capture d’écran 2025-06-18 093750.png

While an automation rule can usually create a work item with a single link in one project, creating multiple links or links to other projects will not work easily.

Do your subtasks have either multiple links or links to work items in other projects?

*** Only a direct Link

Capture d’écran 2025-06-18 094321.png

 

Vincent Larouche
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!
June 18, 2025

-------------- All task information ------------------------------

  • what version of Jira are you using: Cloud, Server, or Data Center: Cloud (1001.0.0-SNAPSHOT)                                                                     - for Cloud, what type of project is this: company-managed, team-managed, JPD, etc: Automation project
  • an image of your complete automation rule in a single image for continuity: 

    Branch.png
Vincent Larouche
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!
June 18, 2025
  • images of any relevant actions / conditions / branches: 1-action.png

2-variable.png

3-comment.png

4-Branch.png

6-Clone test1.png

 

Everything after the branch is in error.

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.
June 18, 2025

Please post an image of the audit log details showing the rule execution.  When you do so, expand the areas at the right side fully.

 

There is no such thing as an "Automation project".  Please identify the project type:

  • Navigate to your list of projects: 
    • yourJiraURL/jira/projects
  • Find your project in the list
  • What is the value in the Type column?

 

The Create Variable action for cloneparent has a typo: smart values are case-sensitive.  The value should be:

 {{createdIssue.key}}

 

Change the branch type from Subtasks to Children.  That example in the knowledgebase article shows them inconsistently in the images.

 

Inside of the branch you have two Create Work Item actions.  Are you trying to create two subtasks for each one found in the current structure?

1 vote
Mikael Sandberg
Community Champion
June 17, 2025

Hi @Vincent Larouche,

Welcome to Atlassian Community!

The first thing I would check is to make sure that the smart value that has the created work item key is populated, you can do that by adding a log action component in the automation and then see what your smart value is set to.

Also make sure that all the fields you are setting on the sub-task are available, if a field is not on the screen that the sub-task is using then the automation cannot set it.

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