Forums

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

Is there a way to add options to a single select list field (custom) via REST API?

Sara Lee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2018

We're trying to sync some data between our instance ServiceNow and JIRA.

When a company record is created, we want to add the company's name as an option to a custom single select field.

1 answer

0 votes
Thomas Deiler
Community Champion
January 31, 2018

Dear @Sara Lee,

unfortunately, no - the API Doc has nothing for "adding" an option. When creating a new custom field it is possible to add options.

So long

Thomas

John Price
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 12, 2018

@Thomas Deiler thanks for this clear answer.  I just found and voted for https://jira.atlassian.com/browse/JRACLOUD-36112.  What's weird is that after reading the cloud API docs at https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-field-fieldKey-option-post I thought you could do this, but is doesn't work.  The API docs say "Creates an option for a select list issue field, for a given field key. The Id will be automatically assigned."  I guess the lack of the word "custom" there is my clue.

This puts a big crimp in our planned solution (similar to Sara's but with Salesforce).  We may end up having to use a manual process to request new values in Jira when they are added in Salesforce :-(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events