How to create a dashboard to show incidents about to miss SLA
Asked by Walter:

Hi all:

Is there a way to create a report in EazyBI or in JSM to help Incident Management team to identify group of incidents ordered by SLA due date (for instance: 10 tickets will miss SLA in the this week, 23 will miss it in the next week, etc.)?

Thanks!

<br />

W.


Answers:
author: Walter
body: Hi all:

<br />

Thanks for taking the time to answer. Finally I found an answer in another forum. I can't find the link now, but in the post they shared this demo \[SLA with ongoing cycles - Jira Service Management Demo - eazyBI\](<https://eazybi.com/accounts/1001/dashboards/42282-sla-with-ongoing-cycles>).

I adapted one of the reports and that's what I needed!

W.


author: Vitaly_Berezovsky_SaaSJet
body: Hi

For these purposes, I can recommend the [SLA Time and Report](https://marketplace.atlassian.com/apps/1220741/?utm_source=SaaSJet&utm_medium=refferal&utm_campaign=Comment_How-to-create-a-dashboard-to-show-incidents-about-to-miss-SLA_20240305).

SLA Time and Report users can share charts to any type of external dashboards. It can be Kliopfilio, Eazy BI, Power BI, GeckoBoards, etc.

To share the [**SLA Time and Report**'s](https://marketplace.atlassian.com/apps/1220741/?utm_source=SaaSJet&utm_medium=refferal&utm_campaign=Comment_How-to-create-a-dashboard-to-show-incidents-about-to-miss-SLA_20240305) chart, follow the steps bellow:

1. Generate the required type of graph.

2. Click on **Capture and Copy** ![1d48790f1-9522-4493-b232-764fc1b6b615.png](https://community.atlassian.com/t5/image/serverpage/image-id/310809iD5CCE605D6871A9B/image-dimensions/522x228?v=v2 "1d48790f1-9522-4493-b232-764fc1b6b615.png")

3. Paste the link you get to the **source of the dashboard** you use.

Let's take Kliopfolio as an example:

1. Click Add source.

![bfd9adc5-a530-40cd-aaca-0f53831acf22.png](https://community.atlassian.com/t5/image/serverpage/image-id/310803iFF88755BDD825579/image-dimensions/469x452?v=v2 "bfd9adc5-a530-40cd-aaca-0f53831acf22.png")

2. Select the type of source - RESR/URL.

![248df5df9-474d-43aa-8baf-d528038edbd4.png](https://community.atlassian.com/t5/image/serverpage/image-id/310810iE7134333B83B2DB8/image-dimensions/549x262?v=v2 "248df5df9-474d-43aa-8baf-d528038edbd4.png")

3. Paste the URL you've copied in [SLA Time and Report](https://marketplace.atlassian.com/apps/1220741/?utm_source=SaaSJet&utm_medium=refferal&utm_campaign=Comment_How-to-create-a-dashboard-to-show-incidents-about-to-miss-SLA_20240305) add-on.

![36b49a843-3b40-40c2-bc4c-c73f4ac66aee.png](https://community.atlassian.com/t5/image/serverpage/image-id/310811i6D9D4A7892701A93/image-dimensions/553x263?v=v2 "36b49a843-3b40-40c2-bc4c-c73f4ac66aee.png")

4. Follow all the next settings according to Kliofolio or other dashboard instructions.

The application has a [**30-day tria**l](https://marketplace.atlassian.com/apps/1220741/?utm_source=SaaSJet&utm_medium=refferal&utm_campaign=Comment_How-to-create-a-dashboard-to-show-incidents-about-to-miss-SLA_20240305) period and is **free for small teams** (up to 10 users), so you can check how well it suits you. My team developed it, so our support can help you with the settings.


author: Oskars Laganovskis
body: Hi [@Walter](/t5/user/viewprofilepage/user-id/5355927) ,

You might define a new JS customfield retrieving the Due timestamp from the issue data.

You might read about creating a new calculated field here - <https://docs.eazybi.com/eazybi/data-import/data-from-jira/jira-custom-fields/new-calculated-fields>

The JS code might be something like the following,

```
if (issue.fields.customfield_NNNNN && issue.fields.customfield_NNNNN.ongoingCycle){
var duestamp = issue.fields.customfield_NNNNN.ongoingCycle.breachedDate;
var duedate = new Date(duestamp);
return duedate.toISOString();}
```

where NNNNN stands for the customfield ID for the respective SLA.

You might then import this field as a datetime measure. That would create a new measure - "Issues with \<custom date field\>".

Then, you might find the issues about having the SLA breach on a specific date with a calculated measure having the following tuple.

```
([Measures].[Issues with <custom date field>],
?[<SLA name> State].[Running])
```

Please feel free to contact eazyBI support directly if you need further assistance.

Regards,

Oskars / eazyBI Support


author: Kian Stack Mumo Systems
body: [@Walter](/t5/user/viewprofilepage/user-id/5355927),

How long are your SLA's? You can always use the JQL like this:   

""Time to resolution" = running() and "Time to resolution" \<= remaining("40h")"

To find issues that will breach within a certain period of time. That JQL can be saved as s filter and then used in filter results dashboard gadgets.

comments: author: Walter
body: HI [@Kian Stack Mumo Systems](/t5/user/viewprofilepage/user-id/853673)

Thanks for answering. I added your suggestion to the query and it seems filtering works, and I can have the info in a table gadget

![Imagen1.png](https://community.atlassian.com/t5/image/serverpage/image-id/308898i3A3AAC2D4554DBB0/image-size/large?v=v2&px=999 "Imagen1.png")

but what we need is a grouping of incidents based on SLAs (for instance, weekly or daily grouping), something like (this grouping is based on the created date, so it helps but it is not the same)

![Imagen2.png](https://community.atlassian.com/t5/image/serverpage/image-id/308899i3FB018B55A0DEADC/image-size/large?v=v2&px=999 "Imagen2.png")

Thanks

<br />

W


author: Kian Stack Mumo Systems
body: I don't know that it is possible to do that out of the box, but I did find this [app](https://marketplace.atlassian.com/apps/1226922/support-dashboards-and-reports-for-jsm-beta?hosting=cloud&tab=overview) which might be interesting to you!


Tags: dashboard

eazybi

jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

sla