Is there any option to trigger approvals based on selected affected CIs related list in CRs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 11:33 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 12:02 AM
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
}
And, In condition for approval select "An approval from each group"
Let me know if you are using Flow Designer.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 01:01 AM
Hi Anvesh,
We are using Workflow for Change Management Process.
Thanks
Aswathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 01:08 AM
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.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 10:38 PM
Hi Anvesh,
I have tried with above solution and it is not working as expected.
Thanks
Aswathy