Automation: Cloning MLCS data in a new issue
When automating issue creation in Jira Data Center, you can use Smart Values to dynamically clone the values of a Multilevel Cascading Select field from an existing issue.
The JSON structure below demonstrates how to pass the MLCS field values from a previously created issue to a new one within an Automation for Jira rule:
{
"fields": {
"customfield_xxxxx": [
{{#issue.customfield_xxxxx}}
{ "id": "{{id}}" }{{^last}},{{/last}}
{{/issue.customfield_xxxxx}}
]
}
}
To use it, from a project navigate to Automation, select a trigger (such as "Issue Created" or "Field Value Changed"), and then choose Create Issue as the action. Here, click on More Options to collapse the text area where you can paste the JSON structure.
replace the xxxxx
with your MLCS field ID.
, multiple selections available,