Forums

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

How do I copy multiple cascading custom fields from a JSM project to a Jira software project?

Venkat Jira Admin
Contributor
June 12, 2023

How do I copy multiple cascading custom fields from a Jira service management project to a Jira software project by using an automation rule? Please resolve this issue.

1 answer

1 accepted

3 votes
Answer accepted
Tansu Akdeniz
Community Champion
June 12, 2023

Hi @Venkat Jira Admin 

In automation, choose More Options -> Additional fields.

CascadingFieldName is the custom field name.

{
  "update": {
    "CascadingFieldName": [
      {
        "set": {
          "value": "{{triggerIssue.fields.CascadingFieldName.value}}",
          "child": {
            "value": "{{triggerIssue.fields.CascadingFieldName.child.value}}"
          }
        }
      }
    ]
  }
}
Venkat Jira Admin
Contributor
June 12, 2023

Hi Tansu Akdeniz,

Thanks for the reply, It is working for only one cascading field, but I have a total of four cascading fields. Please help us to resolve this issue.

Tansu Akdeniz
Community Champion
June 12, 2023

Just change the JSON according to your needs.

Sample for 2 cascading;

{
  "update": {
    "CascadingFieldName": [
      {
        "set": {
          "value": "{{triggerIssue.fields.CascadingFieldName.value}}",
          "child": {
            "value": "{{triggerIssue.fields.CascadingFieldName.child.value}}"
          }
        }
      }
    ],
"CascadingFieldName2": [
{ "set": {
"value": "{{triggerIssue.fields.CascadingFieldName2.value}}",
"child": { "value": "{{triggerIssue.fields.CascadingFieldName2.child.value}}"
}
}
}
] } }
Venkat Jira Admin
Contributor
June 12, 2023

Hi Tansu Akdeniz,

It's working,

Thanks for the reply

Suggest an answer

Log in or Sign up to answer