Forums

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

How to retrieve all possible multiselect options

Ethan Stein November 5, 2021

I have need to retrieve all possible options within a multiselect custom field for a particular issue. If nothing is selected, then getting the issue info returns nothing. The most I can think of is to make a webhook call out to get the mutilselect field's allowedValues back. But there has got to be an easier way to do this.

The reason I need it is so I can feed all the values into another field and send that to a different webhook. I don't want to have to keep updating a variable with this info as I dynamically add/remove the values from the custom field.

Anyone know of an easy way to do this? Seems like an obvious requirement for conditional checks.

I noticed in the automation rule, there isn't a "select all" option when pulling values from it either. Again, not very convenient.

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
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.
November 5, 2021

Hi @Ethan Stein 

I believe you are correct that the only way (currently) to do this in an automation rule is to call the REST API with a web request, and parse out the options from the response.

Without seeing your rule to understand your use case, I wonder about your second paragraph:

The reason I need it is so I can feed all the values into another field and send that to a different webhook. I don't want to have to keep updating a variable with this info as I dynamically add/remove the values from the custom field.

If you are using this information to send outside of Jira, and your list is apparently changing often, wouldn't you need to always do this method?

If instead you are not updating your option list often, you could cache it in an entity property at the project level.

Kind regards,
Bill

Ethan Stein November 8, 2021

It doesn't change often, but I don't want to have to go and manipulate it regularly. It's just annoying.

Suggest an answer

Log in or Sign up to answer