Forums

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

How to copy level-1 value from multi-level cascading to text field during issue creation and issue u

Jeevan
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 22, 2024
  • Hello,

i would like to copy the the level-1 value from multi-level cascading custom field to single line text field custom field under same issue, during issue creation and issue updation, and how we can achieve this using behaviour script, i have tried multiple times but it didn't worked out, please share me a behaviour script.

2 answers

1 vote
Tomislav Tobijas
Community Champion
November 23, 2024

Hi @Jeevan ,

As Marc said, you can do this with ScriptRunner but also with Automation. I've used this on cloud but should be the same for DC. You can get the cascading field value (whether level 1 or 2) via smart values and then just 'copy' that string into another field.

You might want to check out the following thread for this: https://community.atlassian.com/t5/Jira-questions/Use-cascading-fields-in-automation/qaq-p/1960012

But also, the same question as above - what's the use case of copying existing data to another field as you'll have duplicated values?

Anyway, hope this helps.

Cheers,
Tom

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2024

Hi @Jeevan 

Welcome to the community.

I don't think this is possible with a behaviour, but using scriptrunnner itself (i'm no expert).

But my 1st question is why copy data thats in the issue to another field in the same issue?

This seems creating duplicate information for what kind of reason?

Suggest an answer

Log in or Sign up to answer