- 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-12-2023 06:59 AM - edited ‎06-12-2023 09:42 AM
Hi,
There were 3 tasks in total,
One I had manually closed it, which opened two catalog tasks.
I then moved the RITM state to "Closed Incomplete".
3 woknotes got updated. Even for the closed task work notes got updated.
when I open the Task record , the state is "Closed Incomplete" but when I see in the list view its "Work In progress", even in the activity its overlapping.
Help?
Thanks,
Vaishnavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2023 12:30 AM
For the list view one, if you are able see it on form and not on list then just refresh the page or list it will get reflected.
Its just when an update is being done on a record, the list needs to be refreshed to reflect the changes.
for multiple worknotes coming , it might be due to the business rule which is running to closed all the sc task associated with a RITM. Can you please share the condition of business rule and script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2023 06:19 AM - edited ‎06-13-2023 06:20 AM
Hi,
I just updated the worknotes, it got updated twice for each task.
Thanks,
Vaishnavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2023 08:06 AM
a small change in script , i have add a query that it should run for active records. Try this.
And i will check for one thing in my PDI. I hope this add on should resolve your issue.
var catTask = new GlideRecord('sc_task');
catTask.addQuery('request_item', current.sys_id);
catTask.addQuery('active',true);
catTask.query();
while (catTask.next()) {
catTask.state = '3';
catTask.work_notes = "Closing Task as RITM is closed';
catTask.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2023 10:50 AM - edited ‎06-13-2023 10:57 AM
Thank you for the help. It did workout, but there is another issue.
the state values are changed from open -> Closed Complete -> Closed Incomplete
The task is opened, I moved the RITM state to "Closed Incomplete", so why in the activity we see "Closed Complete" here? Because I did not update to closed complete.
The activity log is same for all the 3 tasks.
Thanks,
Vaishnavi