Hi Team,
Is there a sample script that I can use to rename a list of custom fields using script runner ?
Your assistance would be greatly appreciated !!!
Thank you
CJ
You can use 'Behaviors' option in ScriptRunner and add this code in the 'Initialiser' block.
Make sure you map the relevant projects and issue types accordingly to this behavior.
Code:
def custom_field = getFieldById("customfield_xxxxx");
custom_field.setLabel("Whatever name you want to call this");
Note that this custom field will show the renamed value only in 'Create' and 'Edit' screens. It will be displayed in its original label/ value in the View screen.
Hope this helps.
Thanks,
Vamsi
For Jira Cloud
getFieldById("customfield_XXXXX").setName("Desired field name");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.