i would like to ask if anyone knows how to build a complex JQL Query which includes the following content:
Issues which are overdue
Issues which are in time (have time till due)
Issues which are closed
The reason why i am asking is, my department wants to have Diagrams which include this content.
For Example a pie diagram which three pieces shown all of those three.
As my knowledge, the only possibility to show all of those three filter in one pie diagram is to put it into just one filter, is this right?
Thank you in advance.
Hi @Simon Müller,
Welcome to the community, with an interesting use case :-). If I understand you well, you want to pull all issues (for the sake of complexity, I will assume these are all in 1 Jira project) in a single query, but then divide them across different segments based on:
Those are essentially 3 different queries:
Project = XX and Resolution != Unresolved (1)
Project = XX and Resolution = Unresolved and Due >= Now() (2A)
Project = XX and Resolution = Unresolved and Due < Now() (2B)
Combining those in 1 single query is not difficult at all, since they will return all issues in your project:
Project = XX
In order to combine the 3 data sets in a single pie chart, you will need to mark your issues with the current state they are in. Options could be assign them a label (On Time, Overdue, Closed) or set up a custom field (select list, radio buttons) to mark them.
You would need to set up some automation to update the labels / custom field to keep them in the right category. e.g. every issue could be created with the On Time label by default. When the due date passes and the issue is still unresolved, update it automatically to Overdue. When an issue is resolved, update it to Closed. Marketplace apps like Scriptrunner or Automation for Jira can help you fix the automation part.
As soon as you have the categorisation part in place, your pie chart becomes easy. Just build your pie from the category.
A couple of site notes:
If you choose to use labels, be mindful of the fact that labels may be used for other things as well. So the query for you pie chart would need to be something like this:
Project = XX and labels in ("On Time", Overdue, Closed)
Also related to the use of labels - when you add a new label, you should be careful to also remove the old label at the same time.
And finally, although this approach may work, it is certainly not the only solution to visualise this type of information. Alternatives may include:
Hope this helps!
Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events