reference1 min readApplication: Platform
Report fields
Every field on a report definition, grouped by form tab, with its type, behaviour and an example.
This reference lists the fields of a report definition, grouped by the part of the form they appear in. Use it while you follow Create a report.
General
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Name | String | No | The report’s name, for example “Active SLAs by group”. | |
| Description | String | No | A longer description of the report. | |
| Title | String | No | The title shown when the report is on a dashboard. | |
| No data message | Translated text | No | When empty, the standard no-data text is shown. | Shown in place of the chart when the report has nothing to show, for example why the data is missing and how to provide it. |
| Key | String | No | An optional key for the report. A scheduled report’s Context script can name the report by this key, or by its ID, in an override. See Template report scripts. |
Primary table and Secondary table tabs
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Primary table | Table | Yes | The table the report runs on, for example Incident. | |
| Primary query | Condition | No | Filters the primary table’s records, for example Closed is false. | |
| Use secondary table | Boolean | No | When on, the other fields on this tab appear. | Joins a second table, for example to group SLAs by the incident’s assignment group. |
| Secondary table | Table | No | The table joined to the primary table. | |
| Secondary query | Condition | No | Filters the secondary table’s records, for example Active is true. | |
| Primary join field | Field | No | Must match Secondary join field. | The primary table field used for the join, for example ID. |
| Secondary join field | Field | No | Must match Primary join field. | The secondary table field used for the join, for example Parent. |
Grouping and aggregation tab
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Use group by from primary table | Boolean | No | Defaults to on. On shows Primary group by, off shows Secondary group by. | Chooses which table the grouping field comes from. |
| Primary group by | Field | No | The primary table field that groups the results, for example Assignment group. | |
| Secondary group by | Field | No | The secondary table field that groups the results. | |
| Group by order | Choice: Ascending, Descending | No | The order of the groups. | |
| Group by period type | Choice: None, Hour, Day, Week, Month, Year | No | Applies to date and date-time fields. | The period records are grouped by. |
| Group by full range | Boolean | No | Applies to choice and boolean fields. | Shows every value of the field, even values with no records. |
| Use stack by from primary table | Boolean | No | Defaults to on. On shows Primary stack by, off shows Secondary stack by. | Chooses which table the stacking field comes from. |
| Primary stack by | Field | No | The primary table field that stacks the results, for example Priority. | |
| Secondary stack by | Field | No | The secondary table field that stacks the results. | |
| Stack by order | Choice: Ascending, Descending | No | The order of the stacks. | |
| Stack by period type | Choice: None, Hour, Day, Week, Month, Year | No | Applies to date and date-time fields. | The period records are stacked by. |
| Stack by full range | Boolean | No | Applies to choice and boolean fields. | Shows every value of the stacking field, even values with no records. |
| Use aggregation field from primary table | Boolean | No | Defaults to on. On shows Primary aggregation field, off shows Secondary aggregation field. | Chooses which table the aggregated field comes from. |
| Primary aggregation field | Field | No | The primary table field to aggregate. | |
| Secondary aggregation field | Field | No | The secondary table field to aggregate. | |
| Aggregation type | Choice: Average, Sum, Min, Count, Max | No | How the results are aggregated. | |
| Duration type | Choice: Milliseconds to Years | No | Applies when the aggregation field is a duration. | The unit a duration is shown in. |
| Decimal places | Choice: 0, 1, 2 | No | Applies when the aggregation field is a duration. | How many decimal places a duration is rounded to. |
| Record limit | Choice: None, 5 to 10000 | No | Defaults to None. | The maximum number of records returned. Set it on large tables to keep the report fast. |
| Aggregation order | Choice: None, Ascending, Descending | No | Defaults to None. | The order of the aggregated results. |
| Disable default grouping | Boolean | No | Applies when no group by field is set. | A report with no group by field is grouped by table, using the TableClass field. Turn this on to stop that grouping. |
| Disable drill down | Boolean | No | When on, the report loads faster. | Stops users opening the records behind the report. |
Appearance tab
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Template category | Choice | No | The type of chart to render, for example Column. | |
| Template | Reference (Report template) | No | The rendering variation of the chart type, for example a stacked column. You can create your own. | |
| Theme | Reference (Report theme) | No | Optional. | Styling for the chosen template, for example Dark. |
| Effects type | Choice: 3D | No | Optional. | An extra styling effect. |
| Post processing | Boolean | No | Only administrators can read or edit it. When on, Configuration appears. | Turns on the post-processing script. |
| Configuration | Code | No | Only administrators can read or edit it. | A script that changes the chart options generated from the template and theme. |
Advanced tab
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Advanced | Boolean | No | When on, the table, grouping and aggregation settings are ignored. | The report is produced by its Data and Format scripts, not by the settings on the other tabs. |
Security tab
| Field | Type | Required | Behaviour | Purpose |
|---|---|---|---|---|
| Created by | Reference (User) | No | Set when the report is created. | The report’s owner. A private report is visible to its creator. |
| Private | Boolean | No | Defaults to on. Only users with report_editor can change it. |
When on, only the creator and administrators see the report. When off, the report is shared, subject to the fields below. |
| Roles | Multiple reference (Role) | No | Limits the report to users with one of the roles. | |
| Groups | Multiple reference (Group) | No | Limits the report to members of one of the groups. | |
| EntitlementScript | Code | No | Only administrators can read or edit it. | A script for more complex restrictions on who sees the report. |