How to calculate time between assignee transitions with JQL?


I use JIRA installed at a customer site so I cannot install plugins or run Java. 

I want to calculate total time each issue was actually assigned to me, so I need to:

  • add time between assignee transitions
  • where assignee is me
  • for all issues

Can I do this with JQL only?

1 answer

1 votes

JQL is for finding issues.  Not reporting the results, or doing calculations on the data found.

Your needs require some scripting or code basically.

Thank you for your answer. Can I create a script or code without deploying anything to the Jira server?

No, you need the script-runner, or another addon that can support scripting, or an addon that implements the reporting you need. However, if you're happy to scrape information, that's easy. Use JIRA's REST interface to run a query for the issues you want, then you can parse, reformat, recalculate and represent the issue data that's returned in any way you want on another machine.

Can you please provide more info regarding this last option? I can manipulate data in Excel or other means. Maybe a relevant exampla? Many thanks!

Well, for Excel, you could start with the excel export of your issue list, but that won't contain much of the data I suspect you need. For grabbing stuff over REST you need a bit of "fetch data" code, but I think you'll get all the data. The obvious place to start is the docs at but I find them far too "reference material" and much prefer and

Thanks, this option has been blocked by the Jira administrators, so I will keep this for future reference. Thank you

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,006 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot