Good Afternoon,
Happy New Year!
I'm looking to set up some automation rules within Jira Service to ONLY notify certain users of ticket raised when they occur after 5:30pm Monday to Friday, before 09:00am Monday to Friday, and then 24h on a weekend/bank holiday.
I have this for evening:
created > startOfDay(17h) OR created >= startOfDay() AND created < startOfDay(9h) AND priority = P1 OR priority = Highest
But I'm not sure how to specify a weekend?
Hi @Leigh Bartlett ,
Currently there is not a native function directly to isolate working and non working days, so first off please make sure to add your vote to the following feature request to add in a native working hour and non-working hour filter avaliable for Jira Server and Cloud respectively:
There is a really good EXE in the comments of the Feature request mentioned by another user where they are using changed after in conjunction with a endOfWeek option instead of the startOfDay/endOfDay to simplify this one a bit, try using the following and let :
status CHANGED AFTER -1d OR ( status CHANGED DURING (-3d, endOfWeek(-1w) ) )
I was also playing around with this a bit using similar to what you were already testing against, using a combination of a the startOfWeek / endOfWeek options in conjunction with created date to isolate it with a modifier on the created timestamp, and the following seems to work pretty well to isolate the weekend:
(createdDate > startofWeek(-30h) AND createdDate < startofWeek(1d) OR createdDate > endOfWeek(-30h) AND createdDate < endOfWeek(1d))
Regards,
Earl
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.