- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 01:32 AM
Hi All,
I’ve set up a resolution SLA with a condition to exclude it from running if the account is either “SNOW Men” or “Accounttest”. However, when I log a test case for the “SNOW Men” account, the SLA still gets triggered. Any ideas on what might be causing this?
Regards,
Mo
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 01:56 AM - edited 01-20-2025 01:57 AM
You need to change your 'OR' into an 'AND', because 'or' in a negative context will always return true:
If x != a OR x != b -->
x = a -> true, because it's not b
x = b -> true, because it's not a
x = c -> true, because it's not a (or b)
Using 'AND' will exclude both.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 01:56 AM - edited 01-20-2025 01:57 AM
You need to change your 'OR' into an 'AND', because 'or' in a negative context will always return true:
If x != a OR x != b -->
x = a -> true, because it's not b
x = b -> true, because it's not a
x = c -> true, because it's not a (or b)
Using 'AND' will exclude both.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 02:04 AM
Thanks @Mark Manders, That makes sense and resolved the issue. It’s also worth mentioning that in other SLAs with more conditions, the order of conditions plays a significant role too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 03:07 AM
That could be the case, but it does depend on the conditions, of course. It's either 'true' or 'false' and the order shouldn't really matter. since the condition is evaluated as 1.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark