Change Managmnet Approval Process Workflow

Kanna12
Tera Expert

Hello All!

I have a scenario where i want to send an approvals into 4 groups in authorization level and any one from each group must be approve to move into scheduled stage.

I created 4 groups and configured those sys_id's in sys_properties. 

Test_1:"5281139d1b75f1105c6eeaccac4bcbab"

Test_1:"5281139d1b75f1105c6eeaccac4bcbac"

Test_1:"5281139d1b75f1105c6eeaccac4bcbad"

Test_1:"5281139d1b75f1105c6eeaccac4bcbae"

 

1. I wrote below script in workflow to call sys_property values. But Approvals are not going into any of the groups.

answer = [];
var jsonProperty = new JSONParser();
var authorizeGroupProperty = jsonProperty.parse(gs.getProperty('Emergency Authorization Approvals'));
var currentChgCreationGrp = current.u_change_creation_group;
if (currentChgCreationGrp.startsWith('oit')) {
    answer.push(authorizeGroupProperty["Test"]);
    }
 

2. I didn't see an option to select "any one from each group to approve"  in Condition approval field.

ShashankKumar_2-1712863813372.png

 

Please any one please provide an inputs to resolve this

 

Much Appreciated!!

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Kanna12 

 

Seems you are using wrong Approval activity.

 

AGLearnNGrow_0-1712911037989.png

 

*************************************************************************************************************
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

5 REPLIES 5

jMarshal
Mega Sage
Mega Sage

You mention that the approval is only needed from one user in any of the groups...do you mean that there need to be 4 approvals (one from each group) or 1 approval (one from any group) ?

Yes. One approval from each group 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Kanna12 

 

Seems you are using wrong Approval activity.

 

AGLearnNGrow_0-1712911037989.png

 

*************************************************************************************************************
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]

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

Thank you @Dr Atul G- LNG  for your inputs.

I have an situation where depends on change creation group that is start with AppDev. Approval needs to go to 4 groups.

I created 4 groups and configured those sys_id's in sys_properties. 

Test_1:"5281139d1b75f1105c6eeaccac4bcbab"

Test_1:"5281139d1b75f1105c6eeaccac4bcbac"

Test_1:"5281139d1b75f1105c6eeaccac4bcbad"

Test_1:"5281139d1b75f1105c6eeaccac4bcbae"

I wrote below script in workflow to call sys_property values. But Approvals are not going into any of the groups.

answer = [];
var jsonProperty = new JSONParser();
var authorizeGroupProperty = jsonProperty.parse(gs.getProperty('Emergency Authorization Approvals'));
var currentChgCreationGrp = current.u_change_creation_group;
if (currentChgCreationGrp.startsWith('Appdev')) {
    answer.push(authorizeGroupProperty["Test"]);
    }
 
It is not working. Could you please assist here.
 
Much Appreciated!