Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone assit with a Script Runner Bulk Import Custom Field Values example script

Daniel Bower
Contributor
February 13, 2014

I need to import around 1000 options to a custom select field. From my research on this site, it looks like using Script Runner is my best option for this: https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-BulkImportCustomFieldValues

My problem is I'm not really sure from the documentation how this script should be structured. My situation, for example: Say I have a custom field called CustomField. I have a context, ContextA, that has a number values and is associated with multiple projects. I created a new context, ContextB which is empty and associated with a new project. What would the script look like for importing values Value1, Value2 and Value3 into ContextB?

1 answer

1 accepted

1 vote
Answer accepted
Henning Tietgens
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.
February 16, 2014

If you choose the builtin script to bulk import custom field values you have to select the field config for which you want to import the values from a select list. If your custom field has to field configs there are two entries for this custom field.

Daniel Bower
Contributor
February 17, 2014

Ah ok, I was looking in the wrong spot, I didn't see the link for the Built In Scripts, that's exactly what I needed. I thoguht I needed to write a script and run it to do the import. Thank you.

Carmen Bullock July 13, 2017

Is there instructions on how the Bullk import custom field values work? I have a csv to import that is part of of the application but not clear on how this works.

Henning Tietgens
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.
July 17, 2017
Raphi Levine
Contributor
March 4, 2021

Did Script Runner get rid of this?

I only have 3 options under Built In Scripts, and this is not one of them

Henning Tietgens
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 5, 2021

For me it's there (on Jira Server). If you click on the left side on "Fields", the first entry for me is "Bulk import custom field values". If this is not the case for you, I would suggest to contact Script Runner support.

Raphi Levine
Contributor
March 5, 2021

I am on Cloud and it is not there.

:(

Suggest an answer

Log in or Sign up to answer