Check for Change task is closed before closing Change Request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2016 11:15 PM
My requirement is that when Change Request is tried to be closed, it should first check if all the Change Tasks are closed or not. If not closed than first close all the Change Task than close Change Request. but when I try to close any Change Request, all the Change Task are automatically 'Closed Complete' which is present Out Of Box, but I am not able to find out where is it present OOB and disable or deactive it. Can anyone Help me finding it out???

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2016 11:23 PM
If you want to wait for all tasks to close before closing the change request, add a wait for activity in the workflow and use a script as below.
var gr_tsk = new GlideRecord('change_task');
gr_tsk.addActiveQuery();
gr_tsk.query('parent',current.sys_id);
if (gr_tsk.getRowCount()==0)
answer = true;
else
answer = false;
This is picked from the below thread
Custom tasks in Change approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2018 05:43 AM
Hello kalai,
What script I should write if I need to close the change task with the status same as last closed task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2016 11:29 PM
Hi Anubhav,
Go to business rule in your change management application and look for the business rule named "task closer".
Anything that is associated your change record will be automatically close once the change record has been closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2016 11:31 PM
If you want to validation prior in closing a change that all task should be close first. You can use the script the provided by kalairasan.