The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Need to add value to a single select custom field using Import option.

Melina RAMPERSANDS
Contributor
March 27, 2023

Hi,

  I am having a csv file with list of option, I want that option to be assigned to single select custom field using import option.

 Is it possible in JSM ??

2 comments

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Rilwan Ahmed
Community Champion
March 27, 2023

Hi @Melina RAMPERSANDS ,

There is no import option available to create new values for single select custom field. Instead you can use rest api Create custom field options (context)

You should know the custom field ID and context ID to add values. 

POST: /rest/api/3/field/{fieldId}/context/{contextId}/option
Example:  https://<baseURL>/rest/api/3/field/customfield_10006/context/10174/option
Here 10174 is the context ID

You can pass json body as follows:

{
  "options": [
    {
      "disabled": false,
      "value": "L4"
    },
    {
      "disabled": false,
      "value": "L5"
    },
    {
      "disabled": false,
      "value": "L6"
    }
  ]
}
Thomas Opiolka - codefortynine
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 Champions.
March 27, 2023

Hi @Melina RAMPERSANDS ,
If you're looking for a way to import options without manually using the API, you can try using the app External Data for Jira Fields.

With a file data source and the Field Options Sync feature, you can easily import many options at once. Plus, you can target a native Jira select list, so uninstalling the app won't be an issue.

I hope this helps!

Best,
Thomas

(Please note: I work with the vendor of this app.)

TAGS
AUG Leaders

Atlassian Community Events