Hi Everyone,
JSM DC: Cascading issue on custom fields (cascading by scripting Scriptrunner)
I am facing two issues while cascading through scriptrunner on 2 custom fields.
customfiled B depends on customfield A
1. Performance issue(takes few seconds 2 cascade or appear list on customfield B)
2. While changing options on customfield A, the old value on customfield not automatically removes.
Thanks in advance
To report the value of a cascading field (field 2) with the value of another cascading field (field 1) in Jira Cloud Automation, you can use the following sequence of actions:
jsonCopy code
{
"fields": {
"customfield_FIELD2":
{"value": "{{issue.fields.customfield_FIELD1.value}}",
"child": "{{issue.fields.customfield_FIELD1.child.value}}"
}
}
}
Replace "field1" and "field2" with the names of the custom cascade fields you created. This code sets the value of the cascade 1 field to the value of the cascade 2 field. Note that the value of "child" is optional, depending on whether or not your cascade field has child options.
To use this code in Jira Cloud Automation, follow these steps:
With these steps, you will have set up your automation to report the value of one cascading field with the value of another cascading field.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.