/
Automation Usage Cloud
Automation Usage Cloud
Jira Automation
Condition on Multi Level Fields
Copying Multi Level Fields
When Multi Level fields need to be copied to another issue using automation, use the JSON formats below:
Tree & Path (Single Select), Multi Level types:
{
"update": {
"customfield_xxxxx": [
{
"add" : {
"uuid": {{issue.customfield_xxxxx.uuid.asJsonString}},
"value":{{issue.customfield_xxxxx.value.asJsonString}},
"path":{{issue.customfield_xxxxx.path.asJsonString}}
}
}
]
}
}
{
"fields": {
"customfield_xxxxx": {
"uuid": {{issue.customfield_xxxxx.uuid.asJsonString}},
"value":{{issue.customfield_xxxxx.value.asJsonString}},
"path":{{issue.customfield_xxxxx.path.asJsonString}}
}
}
}
Tree & Path (Multi Select) types:
{
"update": {
"customfield_xxxxx": [
{
"add" : {
"ids": {{issue.customfield_xxxxx.ids.asJsonStringArray}},
"values":{{issue.customfield_xxxxx.values.asJsonStringArray}},
"paths":{{issue.customfield_xxxxx.paths.asJsonStringArray}}
}
}
]
}
}
{
"fields": {
"customfield_xxxxx": {
"ids": {{issue.customfield_xxxxx.ids.asJsonStringArray}},
"values": {{issue.customfield_xxxxx.values.asJsonStringArray}},
"paths":{{issue.customfield_xxxxx.paths.asJsonStringArray}}
}
}
}
Cascading Field types:
{
"update": {
"customfield_xxxxx": [
{
"add" : {
"uuid": {{issue.customfield_xxxxx.uuid.asJsonString}},
"value":{{issue.customfield_xxxxx.value.asJsonString}},
"path":{{issue.customfield_xxxxx.path.asJsonString}},
"uuids": {{issue.customfield_xxxxx.uuids.asJsonStringArray}}
}
}
]
}
}
{
"fields": {
"customfield_xxxxx": {
"uuid": {{issue.customfield_xxxxx.uuid.asJsonString}},
"value":{{issue.customfield_xxxxx.value.asJsonString}},
"path":{{issue.customfield_xxxxx.path.asJsonString}},
"uuids": {{issue.customfield_xxxxx.uuids.asJsonStringArray}}
}
}
}