Forums

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

Scriptrunner Behaviours on Label field

Vedant Kulkarni
Contributor
June 9, 2019

Is it possible to apply Scriptrunner Behaviours on Label field?

My requirement is to copy Labels from one field to another while creating/editing issues that means on the form the second Label field should able to copy values from the first Label field.

Anyone can see the feasibility to apply this?

Thanks

 

 

1 answer

0 votes
Andrew
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.
June 9, 2019

Hi @Vedant Kulkarni ,

You can use workflow post function or listeners with event 'create'. 

To copy value look here https://community.atlassian.com/t5/Jira-Core-questions/Copy-Custom-field-value-from-one-field-to-another/qaq-p/73207

 

B.R.

Vedant Kulkarni
Contributor
June 10, 2019

Hi @Andrew

Thanks for the help.

I know using Post-function/Listener that can be possible but I want the second field should able to copy values on the form itself. 

Andrew
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.
June 10, 2019

Hi @Vedant Kulkarni ,

Do you mean when user set field A to value valA, then on view form field B should be set to valA?

Maybe this https://community.atlassian.com/t5/Answers-Developer-Questions/JIRA-copy-field-value-to-another-field-with-JavaScript/qaq-p/522127

B.R.

Vedant Kulkarni
Contributor
June 10, 2019

Thanks, @Andrew for sharing this. I followed the same way but this did not work for me. I think because of the Label field it will not work or I am not sure about this.

Is this will work with Label field?

Suggest an answer

Log in or Sign up to answer