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
Hi @Chris Scheepers
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");
It looks like you're new here. Sign in or register to get started.