Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Time to First Response gadget not showing results

Peter Oliver April 27, 2020

or some reason, my gadget which counts the time to first response is no longer showing results. Nothing about the filter it uses was changed, and there are tons of results from that filtered search. It's just the gadget itself that isn't showing anything where it used to.

 

(I have hovered over the bottom line, in case the results were under an hour, but it is not a clickable link. There truly isn't any data showing)

 

Gadget: gadget.png

1 answer

0 votes
Hazwan Ariffin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2020

That looks like the SLA might have been broken. You can see the full explanation on this here: Missing or corrupted SLA data in Jira Service Desk 

Try running the fix on one issue first and see if that changes anything. For example:

curl --request POST \
--url 'https://<YourDomain>/rest/servicedesk/1/servicedesk/sla/admin/task/destructive/reconstruct?force=false' \
--user '<atlassianAccountEmail>:<ApiToken>' \
--header 'Accept:application/json' \
--header 'Content-Type: application/json' \
--data '{"["UN-228"]"}'
Peter Oliver April 28, 2020

Hmm, I attempted this, and got this error:

postman results.pngAlso, even if this is successful, am I understanding this correctly in that this would have to be run on every single issue/ticket in the filter that I'm trying to have displayed in the gadget? There are TONS in there, which would take forever.

 

Is there any way to re-build the SLA to avoid having to go through this process?

Hazwan Ariffin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 28, 2020

You can't use Atlassian Account password, Peter. You have to use API token. Here's how to Generate API Token.

Anyway, that was just an example that I gave so we can narrow down the problem. If that fixes for one issue, we can have it run to all. We can run for all tickets at once.

Typically I would export the affected issues out via CSV. And then copy the issue key. So basically if you use excel, you can just copy the column out and paste it to a texteditor like sublime. To make it easier, here's a video: Reconstruct SLA

Have a look and hope that helps

Peter Oliver April 30, 2020

Hmm, I did try that using an API Token, and received this as a response:

 

{    "message""Can not deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@22099cc5; line: 1, column: 1]",    "status-code"500,    "stack-trace"""}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events