Using dynamic (is me/is one of my groups) with addOrCondition - possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2018 06:42 AM
Hi guys.
So, I want to add an or condition in the business rule "incident query". It already has 3.
What I want to do is add the OR condition of "assignment_group is one of my groups".
Can't seem to make that work for me.
What should it be?
.addOrCondition("assignment_group", "CONTAINS", "dynamic value");
?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2018 07:06 AM
In such case i mostly try to create the query using the filter and then just copy the query and use in the script with addEncodedQuery()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2018 02:21 AM
That could of course be viable. But, for when it's not: How is it done then? 🙂
