Use Deep Clone as a Jira automation action by adding the “Deep Clone - Single Clone” action to your Jira automation flow.
Looking for more clone options?
See Automated Clone for all Deep Clone automation use cases.
Prerequisites
Presets
Create at least 1 preset with your preferred clone settings before you set up your automation. You cannot use Deep Clone as a Jira automation action without a preset.
Permissions
Make sure you have all necessary permissions. Deep Clone will execute clones in your name and with your permissions.
Step by step
Create a Jira automation with a trigger and any steps that you want to execute before the work item clone.
Click + Add step.
Select Action, type “Deep Clone” and select Deep Clone - Single Clone from the results list.
Click Connect.
Permissions required
Make sure you have all necessary permissions. Deep Clone will execute clones in your name and with your permissions.
Configure the action depending on your use case. Add additional workflow steps if needed.
Typical use cases
Single clone
Use this to: Single clone the work item that triggered your flow.
Use this to: Bulk clone work items based on a JQL query with all work item links still referring to the original work items.
Known limitations
When you bulk clone through Jira automation actions, work item links and hierarchies will not be logically recreated between your target work items. Instead, they will continue to reference the original work items.
Bulk Clone
(full functionality, maintaining work item links, hierarchies and ranking)
or
Space Clone
Before adding your action step:
Add Branch > Branch flow/ related work items.
Select JQL under Type of related work items.
Define the JQL query for the work items that you want to clone > Next
Then:
Add Action > Deep Clone - Single Clone.
Clone to multiple target spaces
Use this to: Clone the work item that triggered your flow to multiple target spaces
Create 2 or more presets with different target space settings
Add the 1stDeep Clone - Single Clone action to your Jira flow.
Enter {{issue.key}} as your Source Work Item Key.
Select Preset 1.
Add the 2ndDeep Clone - Single Clone action to your Jira flow.
Enter {{issue.key}} as your Source Work Item Key.
Select Preset 2.
You can add more Deep Clone - Single Clone actions to other spaces as needed.
Use smart values to filter and continue your automation flow
Use this to: Log smart values from the cloned work item and use them as a filter to continue within the same Jira automation.
Example
Add Action > Log action
Add {{triggeredDeepCloneWorkItem.body}} as Log message.
Add Branch Branch flow / related work items.
Set id = {{triggeredDeepCloneWorkItem.workItemId}}as JQL.
Continue the flow with any action you want.
More options
There are many ways to use smart values in Jira automations. Instead of logging {{triggeredDeepCloneWorkItem.body}} (as described above), you can use or log the following smart values in subsequent automation rules: Smart values.
Pass on clone details with smart values
Use this to: Log smart values from the cloned work item and pass them on to subsequent actions or Jira automations.
Select the work type your work item should be cloned into, e.g. Epic.
Default: If you don’t set a target space (or target work type), Deep Clone will use the target space (or target work type) from your preset.
Click Next to complete the configuration.
Done! You have added a Deep Clone automation action to your Jira automation flow.
Keep track of your automated clones
Check the Jira automation Clone tab in the Clone History to see all clones that were executed by the Deep Clone Jira automation Action.
Only Administrators and the user to which you connected the Deep Clone Jira automation Action can see the clones in the Clone History.
Smart values
There are many ways to combine smart values with Deep Clone in Jira automations. Instead of logging {{triggeredDeepCloneWorkItem.body}} (as described in the uses cases above), you can use or log the following smart values in subsequent automation rules.
Atlassian smart values
{{issue.key}}
The key of the work item that the automation is currently processing.
{{issue.project.id}}
The id of the space that contains the work item the automation is currently processing.
{{issue.issueType.name}}
The name of the work type of the work item the automation is currently processing.
A comma-separated list of the ids of all work item clones that the action created. If the action has status SUCCESS, PARTIAL_SUCESS or ERROR, this list contains all created work items. For other statuses, the list only includes the work items that have been created so far and further work items might be created as the clone continues to run in the backend.
{{triggeredDeepCloneWorkItem.body}}
All information returned by the Deep Clone action.
{{triggeredDeepCloneWorkItem.spaceId}}
The id of the space in which the action created the first work item clone.
{{triggeredDeepCloneWorkItem.spaceKey}}
The key of the space in which the action created the first work item clone.
{{triggeredDeepCloneWorkItem.status}}
The status of the clone action at the time that the action returned control to the automation. As automations action have a maximum runtime of 25 seconds, the action might return before the clone is finished, which will be indicated in this output field. The possible statuses are:
INITIALIZED: The job is not finished yet. So far, no work items clones have been created.
CREATED: The job is not finished yet. At least one work item clone has already been created.
SUCCESS: The job is finished. All work item clones have been created.
PARTIAL_SUCCESS: The job is finished. Some work item clones were created successfully, some work item clones could not be created due to errors.
ERROR: The job is finished. No work item clones could be created due to errors.
{{triggeredDeepCloneWorkItem.workItemId}}
The id of the first work item clone that the action created.
{{triggeredDeepCloneWorkItem.workItemKey}}
The key of the first work item clone that the action created.
{{triggeredDeepCloneWorkItem.workTypeId}}
The id of the work type with which the action created the first work item clone.
{{triggeredDeepCloneWorkItem.workTypeName}}
The name of the work type with which the action created the first work item clone.
{{triggeredDeepCloneWorkItem.allWorkItemKeys}}
A comma-separated list of the keys of all work item clones that the action created. If the action has status SUCCESS, PARTIAL_SUCESS or ERROR, this list contains all created work items. For other statuses, the list only includes the work items that have been created so far and further work items might be created as the clone continues to run in the backend.
{{triggeredDeepCloneWorkItem.messageJson}}
This field contains warning and error messages generated during the clone process. The JSON object has the following structure:
{
"TEST-1": {
"reporter": "Reporter was not among editable fields.",
"assignee": "You do not have permission to edit issues in this project."
}
}
Combine smart values with variables
Keep in mind how Jira handles smart values: If you trigger multiple Deep Clone actions in sequence, each new smart value will overwrite the previous one.
To keep access to an earlier output:
Create a variable and store the smart value in it.
Reference this variable whenever you need to access the earlier output.
Make sure that the Jira Automation rule is either global or, if it’s a “Space (Project) rule”, within the target space where the cloned work item is created.