Forums

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

How do I add a value to a custom field drop down list using API?

Maor Avitan
Contributor
December 8, 2019

I have a custom field that includes dropdown values options.
I would like to know how to add a new option value to drop down using API.

 

tnx.

1 answer

1 accepted

2 votes
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 9, 2019

Hello @Maor Avitan ,

Thanks for reaching out and looking at your account it appears that you are on  the Jira Cloud platform and to add in options for for a custom field in the API there is a new endpoint avaliable for Cloud and you can use a POST to the endpoint:

POST /rest/api/3/customField/{fieldId}/option

Full details and examples on the Endpoint can be seen in the API documentation here:

However if you are using Jira Server there is only a GET option avaliable at the moment for this endpoint, and does not allow for adding in via post at this time:

And there is some further discussion on the topic at the following thread with additional options via add-ons and custom add-on development:

Regards,
Earl

Maor Avitan
Contributor
December 12, 2019

perfect!
tnx

Like Earl McCutcheon likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events