i want to create report on two tables incident and problem which state is closed how to do it

ashwitham
Tera Contributor

i want to create report on two tables incident and problem which state is closed how to do it

1 ACCEPTED SOLUTION

Anand Kumar P
Giga Patron
Giga Patron

Hi @ashwitham ,

 

you can create list report on task table and group by Tasktype, add filters like below task.type is incident and state closed another set of conditions with task.type is problem and problem state is closed.


AnandKumarP_0-1734232597417.png

 

Or 

 

Create a databaseview with below joins in related list

 

AnandKumarP_0-1734234415998.png

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand

View solution in original post

3 REPLIES 3

Uncle Rob
Kilo Patron

Problem and Incident have two different state models.

Anand Kumar P
Giga Patron
Giga Patron

Hi @ashwitham ,

 

you can create list report on task table and group by Tasktype, add filters like below task.type is incident and state closed another set of conditions with task.type is problem and problem state is closed.


AnandKumarP_0-1734232597417.png

 

Or 

 

Create a databaseview with below joins in related list

 

AnandKumarP_0-1734234415998.png

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand

Community Alums
Not applicable

Hi @ashwitham ,

To create a report on both Incident and Problem tables where the state is "Closed", you can use one of these methods:

  1. Database View:

    • Create a database view joining the Incident and Problem tables with the condition state = Closed.
    • Use this view as the data source for your report.
    • join condition exaple 

 

incident.state = "Closed" AND problem.state = "Closed"

 

  • Multi-Dataset Report:

    • Create a new report with the type Multi-Dataset.
    • Add Incident and Problem datasets with filters: State is Closed.
  • Scripting (Advanced):

    • Use GlideRecord to fetch data from both tables and merge them into a custom output.

The Database View method is preferred for native reporting.