How do I add more then one value in Issue fields condition?

David March 14, 2024

Hello, 

I'm trying to get tickets auto assigned to users when a ticket is created and the description contains a value. How do I go about adding more then one value? I'm very new to this. I tried adding in the value field "Magento, B2b" and that doesn't seem to work either. Having two separate "Description Contains" doesn't work either. 

The setup I would like is Run rule when issue is created, if the description contains Magento OR b2b then assign the issue to. Just have no idea how to do the OR part. 

jira.png

3 answers

1 vote
Kalyan Sattaluri
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.
March 14, 2024

Hello @David 

Another option is to do Advanced Compare option:

{{#if(or(issue.description.contains("B2B"),issue.description.contains("M2E")))}}true{{/}}

equals

true

 

Please see screenshot below for example..

image.png

David March 14, 2024

Hmm does issue.description.contain look at the Summary?

Kalyan Sattaluri
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.
March 14, 2024

No, it looks at description :)

If you want to look at summary, you will use below:

{{#if(or(issue.summary.contains("B2B"),issue.summary.contains("M2E")))}}true{{/}}

equals

true

 

Of course, replace the bolded parts you want to check.

0 votes
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2024

Hi @David,

Use an IF ... Then ... Else condition instead. It allows you to add multiple, separate conditions.

Or, use a JQL condition instead. That would allow you to use statements like this:

description ~ Magento OR description ~ B2b

 This specific scenario may be clunky because you are trying to search for the occurrence of certain words in a text field. JQL is not that awesome at searching like this (results are not always 100% sharp) and you are very much depending on how well your users type in text. If you want to really implement business logic here, I would recommend looking at alternative ways to capture this information from your users: provide select list fields where you know what you can expect, to name an example.

Hope this helps!

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2024

Hi David,

What type of field are you trying to add multiple values to?  Only multi-select type fields can contain multiple values (that is multi-select lists, checkboxes, labels, multi-user fields etc.  You mention assignee - that is, I'm glad to say, a single-select list)

Suggest an answer

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

Atlassian Community Events