- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2012 09:18 AM
I'd like to change the state of an incident when it is updated by a caller.
If an incident requires additional information from a caller the analyst would change the 'incident state' to "Awaiting User Info" (4). I would like to configure ServiceNow so that if the customer adds a new comment it would switch the 'incident state' to "Active" (2).
What would be the best way to go about doing this?
I was thinking an 'after' 'update' business rule:
Condition: current.incident_state == 4 && current.comments.changes()
Script:
current.incident_state = 2;
But as it doesn't work I'm thinking there's something wrong with it.
Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2012 09:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2015 10:52 PM
Hi Avani Shah,
Replace the condition as below in the Business rule.
Condition: previous.incident_state == 4 && current.comments.changes() && !gs.hasRole("admin")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2015 03:47 AM
A quick question. Why is the condition precious.incident_state? In my mind wouldnt it be current.incident_state == 4 since it hasnt been changed yet?