I’m unfortunately stuck with an internal task and need a hint/advice.
I get a Trigger from an External System. Each time that trigger arrives, I want to Append a new Option to a custom field in Jira.
As the process should be really simple with the API, I did not create an App yet but followed the Basic Auth way. I followed the authentication Basic auth for REST APIs and I can make a GET for all fields.
The field I want to append my options to has the id:
customfield_11180
Welcome to the Atlassian Developer Community, @BenjaminExner!
Yes, this can be done using basic authentication given you have the necessary permission. Let’s start at the part where you got stuck.
To find the contextId of a custom field, you can use Get custom field context API. In the response, the values will contain an array of CustomFieldContext, use the id of the intended context. The response will look something like this (I only have one context for the custom field)
Just want to confirm this method is only apply to Jira cloud Rest API right. correct?
I am working on a Jira standalone setup. I am wondering if standalone/onprem version of Jira like 9.5 or later can adding custom Field opstions via REST API ? Jira 9.5.0 (atlassian.com)
Welcome to the Atlassian Developer Community, @Qing.
Yes, the REST API we were talking about here is for Jira Cloud. For on-prem Jira (DC), we do have REST APIs you can use (see here), however, we do not have one for adding a custom field option.