How to know the time it took to assign an issue in jql format
Asked by John Benedict de Austria Abe:

Hi! Could someone tell me how to know how long it took for an issue to be assigned to the people in that specific project? Here's my jql format to see how long does it take to assign an issue but it doesn't work:  
**issuetype = Task AND assignee changed from EMPTY to (*userid*)**


Answers:
author: Rebekka Heilmann _viadee_
body: Hi [@John Benedict de Austria Abe](/t5/user/viewprofilepage/user-id/5407348) and welcome to the Community!

The Result of JQL are always Issues, never times or other formats. To get the "Time to first Assign" you would need to set up an SLA in your Service Project.

![Screenshot 2024-02-06 120822.png](https://community.atlassian.com/t5/image/serverpage/image-id/304569i72FF60AB3D27C5AD/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 120822.png")

Check out this docu if you're new to SLAs: [Create service level agreements (SLAs) to manage goals \| Jira Service Management Cloud \| Atlassian Support](https://support.atlassian.com/jira-service-management-cloud/docs/create-service-level-agreements-slas/)

comments: author: John Benedict de Austria Abe
body: Hi, I have only these options about sql:![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/304571i991DCC3B6CB62D1C/image-size/large?v=v2&px=999 "image.png")

And it doesn't work as I want


author: Rebekka Heilmann _viadee_
body: Hi [@John Benedict de Austria Abe](/t5/user/viewprofilepage/user-id/5407348)

You are trying to add a new Series to a Report. First, you need to add a new SLA that measures the time. You find that in under Project settings \> SLA.

After that, you can add Reports on that SLA, but that's optional as the SLA will be shown on the issues either way. The field that you are currently editing requires JQL that will limit the report on the filtered Issues. That could be all Issues from the Service project or only specific ones.


author: John Benedict de Austria Abe
body: Tysm for the information, now I can do the Reports that I need.


author: Hannes Obweger - JXL for Jira
body: Hi [@John Benedict de Austria Abe](/t5/user/viewprofilepage/user-id/5407348)

I'm glad you found an SLA-based solution! Just for future reference, for a solution that works also with non-JSM projects, you may want to have a look at the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2599908).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you'd do in e.g. Excel or Google Sheets. It also comes with a number of so-called smart columns that aren't natively available, including *time with assignee / time unassigned*.

With this, you can model a view like this in just a couple of clicks:

![time-unassigned.gif](https://community.atlassian.com/t5/image/serverpage/image-id/305190iDA75196FA86FA252/image-size/large?v=v2&px=999 "time-unassigned.gif")

As you can see above, you can easily sort and filter by the *time unassigned;* you can also use it across JXL's advanced features, such as support for (configurable) *issue hierarchies* , *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*.

Any questions just let me know,

Best,

Hannes


Tags: cloud

jira-service-management

jira-service-management-cloud

report