Show 'Breached' or 'Not Breached' instead of true/false for Incident SLA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 10:12 AM
I am working on a report for incidents sla, how can i show a 'breached' or 'not breached' instead of true/false for incident.has_breached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 10:22 AM
Hi @athavichith ,
In your report configuration, locate the Field Settings or Columns.
- Create a new Calculated Field based on the incident.has_breached value.
Write a Script for the Calculated Field: You can use the following formula in a calculated field or script to transform the true/false values into 'Breached' and 'Not Breached'.
- use below script
if (incident.has_breached) {
return 'Breached';
} else {
return 'Not Breached';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 11:02 AM
Actually, my report is on incident_sla, which is a database view of incident and task_sla. I tried creating a calculated field on task_sla.has_breached. Did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 08:46 PM
you should create calculated filed on database view and use task_sla column to check true and false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 09:29 AM
if i create a calculated field on the database view table...it will apply to all database views.