I want to find out how many tickets are processed during opening hours (08.00-18.00) and how many are processed outside opening hours (18.00-08.00).
This so that I can show in a dashboard how the division is.
Hi @Mario Volic ,
created >= startOfDay("+8h") AND created <= startOfDay("+18h")
will give you ticket from morning 8 to eve 18 hrs and similar
created >= startOfDay("+18h") AND created <= endOfDay("+8h")
for tickets between 18hrs and 08 hrs of next day
Regards
Haran
Hi @Mario Volic
For all ticket in year you can use the following,
created >= startOfYear() AND created <= endOfYear() AND created >= startOfDay("+8h") AND created <= startOfDay("+18h")
created >= startOfYear() AND created <= endOfYear() AND created >= startOfDay("+18h") AND created <= endOfDay("+8h")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This wont work as written. The "startOf" and "EndOf" are all relative to the current date, not to a specific date field.
This isn't possible in with just native jira tools. You will have to use one of the scripted addons. (Scriptrunner, powerscripts) to make a function that you can use in your JQL.
WIth powerscripts you can make a JQL like this.
key in silJQLExpression("(hour(created) >=17) or (hour (created) <=6)", "project = SD and created >= 2019-01-01 and created < 2019-02-1") ORDER BY created ASC
Im sure there is a way in scriptrunner, but I dont use it so I cant speak to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
created >= startOfYear() AND created <= endOfYear() AND created >= startOfDay("+8h") AND created <= startOfDay("+18h")
Apologies, I was wrong, as the startofDay function return only the issues that are created today irrepective of the previous filtering that is considered.
Im afraid that if we right the JQL code for this it will be terribly long and something like seperating each day , followed by each month and the year.
Unfortunate looping cannot be achieved in JQL . Only way to achieve this is use any plugin or to determine the following JQL as a function
created >= startOfDay("+8h") AND created <= startOfDay("+18h")
And using that function with the year like ,
created >= startofYear() AND Function AND created <= enofYear().
Currently its not possible to directly sort using JQL.
May be you can work to get your desired output by mentioning the date in the JQL
created >= 'yyyy-mm-dd 08:00' AND created <='yyyy-mm-dd 18:00'
by replacing yyyy-mm-dd by all dates required. But it is a tedious work to mentioned all dates and get the output.
Better to use script runner to write the function or use any exisiting plugin to get the data.
I shall try to work on this further and will let you know if any identified.
Regards & Thanks
Haran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mario Volic
Use This JQL
project = "XYZ AND issuetype = bug AND status changed to closed AND updatedDate > "2019/21/10 08:00" AND updatedDate < "2019/21/10 18:00"
This is a much simpler query to use, in my opinion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Thanks for your Answer!
What if I want all tickets during a year and not a specific day?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mario Volic , I have been thinking and I feel the following may be useful also ,
To add more accessibility ,
So by this you can have record over an year with each days ticket created in open hours & outside open hours.
Regards
Haran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.