Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 09:25 AM
How can I create a Business Rule to update incident state based on comments?
- 802 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 10:29 PM
To create a Business Rule in ServiceNow that updates the incident state based on comments, you can follow these steps:
- Create a New Business Rule
- Set Conditions ( This condition checks if comments have changed, if the current state is '10', and if the user adding the comment is the caller of the incident.)
- Add Script ( sets the incident state to 'Work in Progress' when a comment is added )
- Save your Business Rule and test it by adding a comment to an incident that meets your conditions.
Thanks, and Regards
Vishaal
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 11:13 PM
Hi @thullurishalini ,
Just create a business based on the condition:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2024 09:33 PM
You can use script in the business rule. In the advanced tab, hence, create the business rule on the basis of incident table.
You can use the following scipt
if(curent.comments.changes()){
current.incident_state='4';// set your own value to modify the state
}
Thank you