Skip to main content
Question

ticket automator - build condition using Build Expression

  • March 18, 2024
  • 1 reply
  • 71 views

Forum|alt.badge.img+4

I’m trying to figure out my first Condition using Build expression.

I’d like to do the following and can’t figure out how

Contains “report”

OR

(Contains “text1” and Doesn’t Contain “text2”)

 

can someone provide some resources on where i can learn to build these expressions please?

Did this topic help you find an answer to your question?

1 reply

eeha0120
Skilled Expert
Forum|alt.badge.img+12
  • Skilled Expert
  • 746 replies
  • March 19, 2024

Hi.

You could try something like this:

((indexOf({{ticket.subject}}, 'texttolookfor', 0) >= 1) && (indexOf({{ticket.subject}}, 'text2tolookfor', 0) < 1)) || (indexOf({{ticket.subject}}, 'report', 0) >= 1)

 

It will: look for thext “texttolookfor” in a field and check that “text2tolookfor” does not exist in the same field, or, that it contains the word “report” in the same field.

 

Hope this helps.

 

Regards,


Reply