How to configure/script Change Approval policy based on change request affected ci list field value.

AjayParagon
Tera Contributor

We are using flow - "Change - Normal - Assess" which is currently having 5 level of change approvals based on change approval policies configured.

 

Now customer want to have additional approval between Level 2 and Level 3 which should get generated based on below condition.

If normal change request affected ci's list is having CI which contains "XYZ" as value within field "ABC" then approval should be generated to "LMN" group.

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @AjayParagon 

 

It is not possible in approval policy as affected CI stored in task ci table , so for this you need to write a script.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @AjayParagon 

 

It is not possible in approval policy as affected CI stored in task ci table , so for this you need to write a script.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Yes, i done the same created a script which sets the approval level field (custom field) to 2.5 if below condition match's.

(If normal change request affected ci's list is having CI which contains "XYZ" as value within field "ABC").

And based on this field i.e "approval level 2.5" i have created the additional change approval policy as per customer requirement.

AJ-TechTrek
Giga Sage
Giga Sage

Hi @AjayParagon 

 

Refer below docs, might help to resolve your issue.

 

https://docs.servicenow.com/bundle/vancouver-it-service-management/page/product/change-management/co...

 

https://docs.servicenow.com/bundle/vancouver-it-service-management/page/product/change-management/ta...

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/