Click on the Reports tab. This opens the All Reports page.
Click New Query Report button. This opens the Query Editor page.
Select the Table Schema from the combo box say, requests, timespent and so on. Click Get to view the table schema for the selected option.
Specify the title of the report in the Report Title field. This is a mandatory field.
Specify the query to be executed for getting reports in the Query field. This is a mandatory field.
The logs will display all error messages on providing any wrong query.
Click Run Report to run query report.
Tips
Date Formulae: DATE_FORMAT (FROM_UNIXTIME (COLUMN_NAME/1000),'%d-%m-%Y %k: %i') 'Column Alias'.
Minutes Formulae: ROUND ((((COLUMN_NAME/1000)/60)) % 60) 'Minutes'.
Hours Formulae: ROUND (((COLUMN_NAME/1000)/3600)) 'Hours'.
Compare Date: COLUMN_NAME >= (UNIX_TIMESTAMP (DATE ('2006-07-24 00:00:00')) * 1000).
Convert Memory in GB: ((((MEMORY_COLUMN)/1024)/1024)/1024)
Default Value For Null Data: COALESCE (COLUMN_NAME, 'Unassigned')
Group by: Query statement will be ends with order by <column_index>
Additional Field tables
Request Additional Fields - WorkOrder_Fields
Requester Additional Fields - Requester_Fields
Technician Additional Fields - Technician_Fields
Asset Additional Fields - Asset_Fields
Workstation Additional Fields - Workstation_Fields
Problem Additional Fields - Problem_Fields
Change Additional Fields - Change_Fields
While executing query reports via API, users have the option to display columns with null values in the report.
To do this, update the paramvalue in the query given below:
True - Null value columns are displayed in the report.

False - Null value columns are not displayed in the report.
