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:17 | Manually Duplicate Task and Child Weekly | SOME ERRORS | 3.68s | Show less | |
Manual trigger from work item06/17/2025, 14:54:17 Clone work item06/17/2025, 14:54:17 Create variable06/17/2025, 14:54:19 Comment on work item06/17/2025, 14:54:19 BRANCH Branch rule / related work items06/17/2025, 14:54:19 Clone work item06/17/2025, 14:54:20 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!
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:
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
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
-------------- All task information ------------------------------
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everything after the branch is in error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.