Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSON for copy Cascade field value (just on 1st level) into another Cascade field within same issue

Klára Laura Zikešová
Contributor
October 7, 2022

Hi there, would be anybody able to help me to write correct JSON / smart values for this purpose, please?

Copy Cascade field value (just 1st level) into another Cascade field within same issue - no need to bother with what is on second level in cascade (not even wanted to have that second level). 

Have this from other community member question and it work perfectly, but just when copying the same field between parent and subtask. Do not know how to modify it

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

Reason for this is workaround for reporting purposes when we need to see in twodimensional gadget on dashboard sums for values on first level of cascade and it is not possible othervice... This new cascade field with defined just first level would do it for us (not visible field on any screen, just used in that gadget)

1 answer

1 vote
Klára Laura Zikešová
Contributor
October 7, 2022

so this solution works, didn´t find it earlier...

https://community.atlassian.com/t5/Jira-Software-questions/automation-copy-first-value-of-cascade-custom-field-to-another/qaq-p/1418703

{
   "fields": {
      "Cascade2": {
          "value": "{{issue.Cascade1.value}}"
      }
   }
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events