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.
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..
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.