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

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 vote

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.

 

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 ..

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

505 views 8 9
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you