Forums

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

How to copy first level value from multi-level cascading custom field to another custom field

Jeevan Kumar November 17, 2024

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.

 

copy cascading.png

1 answer

0 votes
Jeevan Kumar November 17, 2024

.

Javier Carpenter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 17, 2024

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!

Suggest an answer

Log in or Sign up to answer