Automation | How to copy cascade field value from one issue to another issue

robotsnoindex


Platform Notice: Cloud, Server, and Data Center - This article applies equally to all platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary


This article provides steps to copy cascade field values from one issue to another issue. When we clone an issue through automation, the cascade field will not be listed under the fields selection list and we need to use JSON value to copy the value.

Environment

Jira Cloud

Jira Data Center version 9.0 or later

Jira Data Center and Server with A4J app installed

Solution

To copy the cascade field value from one issue to another issue we need to use the following JSON value. Here customfield_10104 represents the cascaded custom field by its id.

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

Reference screenshot in the rule.

Last modified on May 30, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.