Forums

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

How can I get and set a value for a single select custom field type in Jira cloud automation

Cash Coyne
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.
April 3, 2024

I have a custom field: {{issue.My Field}} that is single select and the context has no default value.

I want to be able to set the option of the field to a specific option.  Looking at the option, it's name is TBD. And the URL when hovering over the edit link, shows me that the option number id is 13741.  How can I set the custom field to that value?

 

3 answers

1 accepted

1 vote
Answer accepted
Cash Coyne
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.
April 4, 2024

I was able to set it by using the component to Edit an issue. I selected the field and for the value I used the option id number that I saw in the URL when hovering over the edit link in the options update page of the custom field.

1 vote
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.
April 4, 2024

Hi @Cash Coyne 

Without seeing your specific rule details...

When you have the id for a single, select field option and want to set the value, please try advanced edit with JSON in the edit issue action:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Single-select-custom-field

Kind regards,
Bill

1 vote
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 3, 2024

Hi Cash,

Can you give is your exact scenario/use case? What would trigger the field to be updated, for example? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events