Need to change incident state when user adds additional comments while in the incident form

sylvia_hope
Kilo Contributor

I have an Inbound Action already set in place to update the State when a users responds to an email, but we have users going directly into the Incident and added comments. We need to change the state to Customer Responded(33) when this happens as well.

I was think about a Business Rule with a script, but am having a hard time creating it.

I want it to change the state to Customer Responded when the customer adds notes in the additional comment.

current.caller_id && current.comments.changes()

current.state=33

1 ACCEPTED SOLUTION

adiddigi
Tera Guru

Condition of the business rule should be : current.caller_id.sys_id = gs.getUserID() && current.comments.changes()



and the body should contain:



current.state = '33'



This should be a "before" update business rule.


View solution in original post

9 REPLIES 9

adiddigi
Tera Guru

The only reason I said this should be a before Business rule is because, you don't have to write an update statement.



Not sure what you are pointing at. Sorry.


Got it..:) Thank you Abhiram..


sylvia_hope
Kilo Contributor

Thank you, that worked, I just added a condition that Caller Id is dynamic(me) and on update and it worked.



Thanks again,


Sylvia


Michael Hays
Tera Expert

I created a business rule and the condition builder to accomplish. Works perfect

VShine
Mega Guru

It works perfectly....thank you