We have been using opsgenie and are now implementing Jira Service Desk. I would like to create an Opsgenie alert for any new service desk issue created ONLY during off work hours.
example: customer opens issue at 1am, I want to create an alert in opsgenie. Customer opens issue at 1pm, no alert created in opsgenie.
Currently I have all service desk issues creating alerts and only routing alerts during off hours.. but that still leaves 'clean up' work of closing all opsgenie alerts that were created during the day but not routed.
and yet a 3rd way...
If you are using the JSD webhook you can simply set the jql condition to meet your needs. For example, let's define Afterhours as 5pm - 7:59am then the jql would be...
project = abc and (createddate >= startofday() and createddate < startofday(+8h)) OR (createddate >= startofday(+17h) and createddate < startofday())
I think i have the syntax correct but definitely check me on that. Decoding this...
Yes, we are using the JSD webhook. This is really good.. I'm new to jql so took me a bit to implement.. learned syntax needs to include quotes
ex: startofday("+17")
next up is to figure out how to carve out based on day of week.. as the above wont send alerts if customers submit issues on Sat or Sun 8am-5p :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, you will need to play w/ the various 'day' options to get there. Likely using startofweek() function to add in the weekend component to your definitions of after hours. This would be a good how to article...if I only had some free time. :-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chris,
I'd play around with creating an SLA which breaches immediately when "Off hours" hit. Then, you can write a JQL which will pick up any tickets which have been breached AND created within the last couple of minutes. That way you'll only get tickets which were created after hours.
Does that make sense?
Thanks,
Kian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Chris Haworth ,
You could consider doing with the automation for JIRA and in the if condition you can check for created between endofday(some hours) and startofday(somehours). The problem here is JIRA does not have true out of office calendars that can then trigger such an event as you want.
Please note that this is just a workaround and does not factor in the Opsgenie add-on being used directly here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.