

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Good day everyone.
I was trying to add a business rule with the following logic:
If the request title contains the words critical or down, then raise an incident.
I tried using the following code but it doesn't work:
${contain(entity.DisplayLabel, 'critical') || contain(entity.DisplayLabel, 'down')} Set ServiceImpact to true
I tried this too but doesn't work:
$match_pattern(entity.DisplayLabel, '*critical*') Set ServiceImpact to true
Can someone please show me how it's done.
When I try just a simple $entity.DisplayLabel == 'critical' Set erviceImpact to true, it works.
But I need to test for the existence of string.
Thanks and regards.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello,
The match_pattern rule should work, I tested your rule.
The "contains" will not work, it applies to collections.
Best regards,
Brindusa

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello,
The match_pattern rule should work, I tested your rule.
The "contains" will not work, it applies to collections.
Best regards,
Brindusa


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thanks Brindusa. I went back to my code and try changing the synrax and the below works. Thanks for your tip.