Business rule

thullurishalini
Kilo Guru

How can I create a Business Rule to update incident state based on comments?

7 REPLIES 7

VishaalRanS
Tera Guru

Hi   @thullurishalini 

To create a Business Rule in ServiceNow that updates the incident state based on comments, you can follow these steps:

  1. Create a New Business Rule
  2. 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.)
  3. Add Script ( sets the incident state to 'Work in Progress' when a comment is added )
  4. 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.

AndersBGS
Tera Patron
Tera Patron

Hi @thullurishalini ,

 

Just create a business based on the condition:

AndersBGS_0-1727763188819.png

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/

Anantha27
Mega Guru

HI @thullurishalini 

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