Need help with a report for open RITM with all closed tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 08:54 PM
Hi Team,
Can somebody help creating a report to fetch the open RITMs with all their respective tasks being closed? I saw number of solutions here already, but they don't seem to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 08:56 PM
This is the logic which I already tried, doesn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 09:07 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 09:21 PM
Hi @shantanudes ,
To create a report in ServiceNow that fetches open Requested Items (RITMs) with all their associated RITM Tasks closed, you’ll need to use a combination of data modeling and filtering logic, because this type of query involves evaluating child records (tasks) in relation to their parent (RITM). Here's a clear step-by-step approach explained in paragraphs
Create a Database View (Optional but Helpful)
To make reporting across multiple tables easier, consider creating a database view. Go to System Definition > Database Views, create a new view, and include the sc_req_item table and sc_task table. Join them using sc_req_item.sys_id = sc_task.request_item. This will allow you to report on RITMs alongside their tasks in a single dataset.
Add a Custom Field or Script Include to Flag Valid RITMs
Since you want to find RITMs where all tasks are closed, you can write a Script Include or Business Rule that evaluates this condition. For example, the script can check if there are any open tasks (state != 3) for a given RITM. If not, you mark a field on the RITM, such as u_all_tasks_closed, as true. This logic ensures each RITM is dynamically evaluated as task statuses change
Create a Report Using the Custom Logic
Once the custom field is populated (e.g., u_all_tasks_closed = true), go to Reports > Create New and choose Table as sc_req_item. Use a filter like:
State is not Closed
u_all_tasks_closed is true
This report will now only include open RITMs for which all associated tasks have been completed.
You’ll get a report that shows only those RITMs that are still open, where all their tasks are already closed, helping you identify pending approvals, workflow errors, or automation opportunities.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 12:27 AM
Hi Tejas,
Thank you for the suggestion. But looks like, there could be access limitation to me while trying the 1st and 3rd option. I don't see the "system definition" option and "u_all_tasks_closed" condition at all.
Since I am not an admin, I won't be able to try the 2nd option as well.
Any other suggestions, please?
Thank you,
Shantanu D