I would like to add customfield's drop down values information using REST API or Scriptrunner.
Script runner has a "Bulk import custom field values" which is exactly what we want, but we would like a to do that using a external script instead of a web form so that we can automate them.
Has anyone actually accomplished this send me REST API URL used with data they sent? We are currently using rest server 9.8.0 V2 not V3.
Hello Charlie,
Welcome to the community!
You can definitely creates options and, where the custom select field is of the type Select List (cascading), cascading options for a custom select field. It is important to note that the options are added to a context of the field.
You can use a REST API call to create the options. Specifically this endpoint:
POST /rest/api/3/field/{fieldId}/context/{contextId}/option
More info on the above endpoint can be found below:
Please give it a try and let me know how it goes.
Kind regards,
Carlos
I did try that as per document but that doesn’t work. Field API doesn’t find custom fields. Also I never found a way to fetch contextID afterwards. I would like to see someone trying that to see if it works on their machine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.