Is there any option to trigger approvals based on selected affected CIs related list in CRs

Aswathy3
Tera Expert

Hi All,

 

Is there any option to trigger approvals based on selected affected CIs related list in Change Requests?

 

After submission of CR, Change Owner will select and add the different affected CIs and based on these CIs Change Group approval needs to trigger based on the Support group mentioned in the CI form.

Can anyone please help me on this?

 

Thanks

Aswathy

8 REPLIES 8

AnveshKumar M
Tera Sage
Tera Sage

HI @Aswathy3 ,

This is possible, may I know which process engine you are using like Flow Designer or Work Flow for change management?

 

If it is Workflow you can use Script in Group Approval activity and query the affected CI's like this

var answer = [];
var tskCIGr = new GlideRecord('task_ci');
tskCIGr.addQuery('task', cuurent.sys_id);
tskCIGr.query();

while(tskCIGr.next()){
  answer.push(tskCIGr.ci_item.<support_group_field_name>); //replace with field name for support group in CI form
}

AnveshKumarM_0-1687503642122.png

And, In condition for approval select "An approval from each group"

 

AnveshKumarM_1-1687503660973.png

 

Let me know if you are using Flow Designer.

 

 

Thanks,
Anvesh

Hi Anvesh,

 

We are using Workflow for Change Management Process.

 

Thanks

Aswathy

@Aswathy3 

If its Workflow you can use the solution I provided in my above answer. Please let me know if you need any help on this.

 

Thanks,
Anvesh

Hi Anvesh,

 

I have tried with above solution and it is not working as expected.

 

Thanks

Aswathy