'Does not change' condition operator

Dubz
Mega Sage

Hi,

I have a business rule that prevents an Incident ticket from being progressed when the caller is the default 'Guest'. This rule is running before update and says if the caller is Guest, abort. Pretty simple.

Now, i have a requirement to allow users to amend 1 field on the form from the list view. It's a reference field and when it's empty i need users to be able to edit it without being blocked by the aforementioned abort rule. If there was a condition operator called 'does not change' that would work perfectly as the abort rule would only apply when the field didn't change so my users could change it with impunity. However, it doesn't exist and so here i am hoping someone can help me with a clever script or perhaps insight into how to add operators?!

Cheers

Dave

1 ACCEPTED SOLUTION

Hi Dave,



You can add if the 'reference field changes' as a condition in the business rule for example


if (current.priority.changes() != 'true')


{


Run my abort rule


}



Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

Hi David,



In the business rule, you can add a condition, when the reference field is empty, only then run the abort rule.



Please mark this response as correct or helpful if it assisted you with your question.

HI Sanjiv,



Thanks for the input.



However, if i add that condition then the abort will ONLY apply when that field is empty leaving my users free to progress tickets where Guest is the caller on every other ticket where that field is not empty.



I need the abort rule to apply in all circumstances except for when i am changing this field from one thing to another.



Cheers


Dave


Hi Dave,



You can add if the 'reference field changes' as a condition in the business rule for example


if (current.priority.changes() != 'true')


{


Run my abort rule


}



Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv,



That sounds like a plan, how do i add that script to a condition?



Cheers


Dave