JQL: How to find issues created in non-working hours?

Hi, any way to find issues that are created this month in non-working hours?

For example, find all issues creted after 19:00, and all issues created in Saturday and Sunday.

And all this in jql filter?

Or with mysql query?

7 answers

This widget could not be displayed.

SELECT * FROM jiradb.jiraissue

where HOUR(CREATED) > '19:00'

This is in mysql for the hours, but waht about the weekends?

Did you want JQL or SQL? They are not the same.

This widget could not be displayed.

Hi Norman,

I know they are not the same.

I preffer JQL.

This widget could not be displayed.

You will need to generate a script that creates the JQL strings and either cut and paste them or create filters.

The following JQL deals with the weekend (ie anything created after 5 pm friday through sunday)

project = JIRA and created >= "2014/05/30 17:00" AND created < "2014/06/02"

This widget could not be displayed.

Hi Norman,

and thank you for the reply.

I need more global solution, for example to be able to specify only the month, and to to create report for all issues created during weekends and in after-working hours. I think that I'm able to create sting in JQL for all weekends in a given month, but I just need more general solution.

This widget could not be displayed.

Hi @Todor Kostadinov, i'm looking for the exactr same thing.. I was wondering if you had any luck

 

thanks!

This widget could not be displayed.

No, sorry.

Dear Todor, do you maybe found a way for creating the report with tasks which is created at non-working hours?

 

Thanks a lot,

Regards,

Katarina

This widget could not be displayed.

well this works.. but it's a slow query..

createdDate >= startOfDay(-8h) AND createdDate <= startOfDay(8h) OR createdDate >= startOfDay(-32h) AND createdDate <= startOfDay(-16h) OR createdDate >= startOfDay(-56h) AND createdDate <= startOfDay(-40h) OR createdDate >= startOfDay(-80h) AND createdDate <= startOfDay(-64h) OR createdDate >= startOfDay(-104h) AND createdDate <= startOfDay(-88h) OR createdDate >= startOfDay(-128h) AND createdDate <= startOfDay(-112h) OR createdDate >= startOfDay(-152h) AND createdDate <= startOfDay(-136h) order by createdDate DESC

seems to be the only way..

 

Dear Fernando, do you maybe found some other way for creating the report with tasks which is created at non-working hours?

 

Thanks,

Regards,

Katarina

Hi Fernando,

as far as I can see the startofDay() function works just for the current day (the same for endofDay() ). Am I wrong?

I'd like to find a solution in order to consider a different SLA if the ticket is created on work hours or not-working hours. 

 

Thanks in advance,

Fiorella

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

207 views 3 0
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