Using dynamic (is me/is one of my groups) with addOrCondition - possible?

Jacob Saaby Ni1
Giga Expert

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");

?

 

2 REPLIES 2

Anurag Tripathi
Giga Patron

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()

That could of course be viable. But, for when it's not: How is it done then? 🙂