Forums

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

Is it possible to use Automation to add options to a custom field's picklist?

Martyna Marcinkowska
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, 2023

I'm writing an automation workflow which sends a web request to Azure's API and grabs some values from the request (names of policy definitions assigned to management group). I then would like to be able to add values (the names of the various policies) to a picklist of a custom field in a task. Basically, I want new options to be added to the picklist or a new custom field created based on what I get in the workflow. 

Is there a way to do this?

Some screenshots for reference:

pic2.pngpic1.png

1 answer

0 votes
Bill Sheboy
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.
January 31, 2023

Hi @Martyna Marcinkowska -- Welcome to the Atlassian Community!

It appears possible to update a custom field's options by calling the following experimental REST API function using a web request from the rule: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-put

Please note that I have not tried this and so cannot confirm how well it works.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events