- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2023 05:10 AM - edited ‎06-23-2023 04:17 AM
Hi,
1. When Tasks are closed, RITM is not getting closed. (RITM should close once the Catalog Task is closed)
2. When RITM is cancelled/closed Tasks should cancel or close . Approvals No longer required.
Code does not work. The Tasks are getting closed just fine but the RITM state automatically moves to "Closed Incomplete" though I am marking it as Closed Complete , once the form reloads it moving to closed incomplete. Not sure why.
3. Once the RITM is closed REQ is not getting closed and still "Active".
Please help me fix this issue!
Thanks,
Vaishnavi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2023 04:20 AM
This happening because your workflow is attached to the RITM and it is still going to proceed with the flow. There is only one functionality which cancel the workflow upon ritm cancelation.
If you close complete the RITM and there is still few activities in the workflow to be executed. it will execute that.
Make sure to close RITM upon completion of Workflow. you can do one thing before this activity. You can put a if statement and check if RITM is closed complete or not and according proceed the flow.
Please mark it Correct if it resolves your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2023 05:54 AM
You need to configure these things in the workflow that is being attached to a particular Item.
Depending on your flow you can use run script activity just before end activity and use below script to close RITM and Request.
var state = '';
var catTask = new GlideRecord('sc_task');
catTask.addQuery('request_item', current.sys_id);
catTask.query();
while (catTask.next()) {
state = catTask.state;
}
current.state = state;
var request = new GlideRecord('sc_request');
request.addQuery('sys_id',current.request);
request.query();
if (request.next()) {
request.state = state;
request.update();
}
Can you please marked it as correct answer or helpful. If it solved your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 04:03 AM
WERE YOU ABLE TO RESOLVE IT,
Can you please marked it as correct answer or helpful. If it solved your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 05:32 AM
Hi ,
I moved the RITM state to "Closed Incomplete" , the Task state moved to "Work In Progress".
Thanks,
Vaishnavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 05:41 AM
please check if the below highlighted business rule as it is oob business rule which close task on cancellation of ritm. further more please make sure you are creating catalog task and not task through workflows.
As i can see the above screenshot has TASK instead of SCTASK, as per best practice make sure you are choosing sctask table in create task activity. this is because multiple oob business rule on ritm do glide record sctask and not task.