View Incidents where all tasks are closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 01:06 AM
Hi,
We have a use case where we want to see Incidents where 'ALL' Incident Tasks are closed. If 'any' incident task is open then this should be filtered out.
Example
So if an Incident has 2 tasks (1 Open and 1 Closed) this should be filtered out. If both tasks however are closed then it should be included.
Can't see how this can be achieved.
- Labels:
-
Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 02:02 AM
Hi,
In filter condition there is option called "Related list condition".
Select "Incident task->Incident" and give condition for "State - is - Closed".
Give it a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 02:04 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 02:49 AM
Hello,
Please try the below code in background script.I tried it is working fine.
var gr=new GlideRecord('incident_task');
gr.addQuery('incident.number','STARTSWITH','INC');
gr.addQuery('state',3);//assuming close as 3
gr.query();
while(gr.next())
{
gs.print(gr.incident.number+'\n');
}
Please Mark it helpful/correct if my answer helps in any way to resolve your query.
Reach out to me if any more help required.
Regards
Yash.K.Agrawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 03:06 AM