How can I copy a multi-level-cascading-select value with Automation for JIRA?

Денис Шитягин October 14, 2021

Hi, can you please tell me what is wrong in my JSON?  I set up copying the value of the multi-level-cascading-select field, from one task to another, but the field with my JSON is not copied.

{"type":"array","items":"string","custom":"com.sourcesense.jira.plugin.cascadingselect:multi-level-cascading-select"

{
"update": {
"customfield_xxx": [
{
"set": {
"value": "{{triggerIssue.fields.customfield.customfield_xxx.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield.customfield_xxx.child.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield.customfield_xxx.child.value}}"
}
}
}
}
]
}
}

1 answer

1 accepted

1 vote
Answer accepted
Julien Peyrade _ Elements
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 15, 2021

Hello @Денис Шитягин 

I think the correct JSON would be something like this : 

{
"update": {
"customfield_xxxxx": [
{
"set": {
"value": "{{triggerIssue.fields.customfield_xxxxx.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield_xxxxx.child.value}}"
}
}
}
]
},
"update": {
"customfield_xxxxx": [
{
"set": {
"value": "{{triggerIssue.fields.customfield_xxxxx.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield_xxxxx.child.value}}"
}
}
}
]
}
}

 

So, basically, one update for each child value.

Денис Шитягин October 15, 2021

@Julien Peyrade _ Elements  Thank you very much, I will try

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events