creating customfield using multi level cascading and load the values at the time of the custom field creation using groovy script

rTrack Support March 31, 2016

Hi

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 ?

 

1 answer

0 votes
adammarkham
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.
March 31, 2016

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.

 

rTrack Support April 3, 2016

Hi, 

i am looking for the groovy script or how to write the script for creating a new custom field and bulk insertion of datas to that field at the time of creation .

anybody can help on this ??

Thanks in advance ..

rTrack Support May 13, 2016

Pls help to create a multi level custom field in JIRA using groovy script .

Suggest an answer

Log in or Sign up to answer