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

Separate Value in a Multi Select Dropdown Field

Adam Rosenbaum September 26, 2023

I am attempting to ask a question I previously posed, but in a more specific, direct way.

Is it possible to extract selections from a multi select drop down box so that I can write automation that analyzes each submitted answer separately? 

1 answer

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 26, 2023

@Adam Rosenbaum -

Can you clarify your ask - "to extract selections from a multi select drop down box for automation"?

Are you trying to establish an automation rule to test out for option(s) selected for the custom field?  If so, then your condition can use the one of different conditions listed below to test out your issue's options selected for your issue.

2023-09-26_16-58-44.png

Hope this helps.  Please advise of your updates.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Adam Rosenbaum September 27, 2023

Swish it was that easy. I found my answer but first a little more detail. We are using the OOB Affected services field tied to the OpsGenie Services. We tier our services and depending on the tier assign a point value as it part of a calculation to determine Impact. The field is multi select which is fine as there may be multiple services impacted. If that is the case, we need to determine which service selected is considered a higher tier and assigned the highest point value. So if Tier 1 is worth 4 points and Tier 3 is worth 2, 1 of each service is selected, we want to only assign the 4 points.

Being new to Jira my mind immediately went to extracting each value somehow and running a simple Do While type loop. I figured the values were probably stored in an array, but how to access the array was the question. Well, after digging and researching (Thank you google!) I found my answer....sort of!

{{Field Name.get(0)}}

{{Field Name.get(1)}}

{{Field Name.get(2)}}.....

 

In one rule I can create a variable for each one and use the variable to determine. I say this sort of works because I am limited to the amount of variables I create. If I create only 5 variables and they select 6 services and one is a tier 1, what are the odds that the tier 1 is 0-4 in the array. then again 2 or 3 services should be the max amount of services selected for an unplanned event.

 

So cross my fingers and here we go...

Suggest an answer

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

Atlassian Community Events