Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

find value in "select list" field

Juergen Holzer December 29, 2023

Dear all!
I'm trying to check if my "select list" field contains the value a user entered and select this automatically if available (this works).

But if the value is not available I want to check before and send a notification. Instead I just receive an automation rule error.

Is there any way to lookup the select list items in Automation Rule? 

Thank you!
kind regards 

3 answers

0 votes
Juergen Holzer January 9, 2024

I'm sorry, the answers go in to the wrong direction.

I want to achieve something like this, where "EndCustomer" is my customfield of type "select list". So if the list doesn't contain the value I want to receive a notification. 

image.png

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 9, 2024

Hi @Juergen Holzer 

Please try to stick to one conversation thread when posting.  That will help others looking at this question in the future see if there were multiple possible solutions.  Thanks!

 

Next, please post images of your entire rule and the audit log details for context.

 

Finally, please confirm the following:

  1. Are you checking if a specific value is selected in the custom field, or
  2. Are you checking if a specific value is available in the list of values to be selected from all values in the field?
Juergen Holzer January 15, 2024

Hello Bill!
It's the second option, I want to check if a specific value is available in the list of values.
Thank you!

KR

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 16, 2024

Please see my earlier response: checking if a value is in the available values for a selection field is only possible by calling the REST API and comparing.

And...would you please clarify:

What problem are you trying to solve by doing this?  That is, "why do this?"

Knowing that may help to reveal other solution approaches.

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.
December 29, 2023

Hi @Juergen Holzer 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

To find all possible values for a select field, an automation rule would need to call a REST API function, such as this one, using the Send Web Request action:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-get

Kind regards,
Bill

0 votes
Asha Goyal
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.
December 29, 2023

Hello @Juergen Holzer 

Kindly refer to the document and you should get some hint for your senario.

https://confluence.atlassian.com/automationkb/automation-for-jira-how-to-update-a-select-field-multiple-choices-from-the-content-of-other-fields-1236449082.html

Please accept and vote the ans if this helps.

Thanks

Asha

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events