Hello Team,
how to set a script using scriptrunner when issue created/edited to copy first level value from multi-level cascading custom field to another custom field (single line text field),
you can check attachment, in the attachment the
"Business Group / Division / Department" is multi-level cascading which has first level value "Banking Operations Group", this should be copied to "Group owner" single-line text custom field.
To copy the first-level value from your multi-level cascading field to a single-line text field, you'll need to use a ScriptRunner script. Make sure to trigger the script on issue creation or edit. Here's a simple outline:
1. Fetch the multi-level cascading field (`Business Group / Division / Department`) using its name.
2. Extract the first-level value from the field.
3. Set that value to the target single-line text field (`Group owner`).
Ensure you test the script thoroughly before applying it to production. If you run into issues, feel free to share more details!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.