Forums

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

It is possible to use wildcharts of functions in a automation rule condition?

Evert Morren
Contributor
September 30, 2021

Is it possible to use wildcharts or functions (or/and) in the value field? Automation rule.JPG

3 answers

3 accepted

2 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2021

Hi Evert,

If I understand your request, you are wanting to be able to use a wildcard to match text strings.  Technically there is not a wildcard like an asterisk that you might use for some other system.  However when using the contains condition, like in your screenshot, will match any word that contains that string.

So in your own example where the value is ZOA

This would match any description that contains that string, such as words like zoantharian or protozoa.

Perhaps I'm not understanding your ask here, so if this is not a helpful answer, please provide me some more information in regards to your desired outcome and perhaps I can offer some additional help here.

Andy

Evert Morren
Contributor
October 4, 2021

Clear, thank you for answering.

Evert Morren
Contributor
October 5, 2021

Hi Andy, SI it possible to use for ZOA-Manager as a condition, and is it possible to use or functions, so ZOA-Manager or ZOA-Application?

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2021

If you want to use an OR, then you might want to look at a different condition. Perhaps one such as JQL condition.  If you use this, then you could input a JQL search such as

description~"ZOA-Manager" OR description~"ZOA-Application"

If this is a project rule, it would return all issues in that project that match either term.  This could work if you want the same action for both. 

However if you want different action for each term, then another approach could be to use the If / else block condition.  This latter option let's you define a series of checks, each with their own action to follow.

Evert Morren
Contributor
October 6, 2021

Hi Andy, thanks for your answer. I made the JQL search description ~ "ZOA-Manager", but the search match also on for example:

ZOA,

this is a test, please do this and that.

The department Manager

I don't understand what happens, it seems if the description contains the word ZOA or manager the search is positive.

0 votes
Answer accepted
Daniel Turczanski - JQL Search Extensions
Atlassian Partner
October 14, 2021

Hi @Evert Morren,

You can use JQL to match the issues. Standard JQL doesn't easily allow searching for exact words, special phrases and patterns.

To get the wildcard support, use our professional indexing service JQL Search Extensions

After you install the app, you can simply search:

issue in wildcardMatch("description", "*ZOA*Manager*")

Check out the documentation for more examples.

I hope this helps!

Daniel

0 votes
Answer accepted
Fabian Lim
Community Champion
October 3, 2021

Hi @Evert Morren

Try using a jql condition instead. 

Cheers


Evert Morren
Contributor
October 5, 2021

How can I made a rule matching ZOA-Manager or ZOA Manager or ZOA-manager or ZOA manager?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events