creating customfield using multi level cascading and load the values at the time of the custom field creation using groovy script.
we have used jelly runner for creating the custom field and load the multiple values at the time of the creation itself .is is possible to do with groovy script .
is there any steps to follow or any example code ?
For loading the custom field values you can use the built-in script "Bulk import custom field values": https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_bulk_import_custom_field_values
If you want to do this in code yourself, you would need to use com.atlassian.jira.issue.CustomFieldManager to first get the field which will then give you the field config object and finally use that in com.atlassian.jira.issue.customfields.manager.OptionsManager to create the option.
If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot