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
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 :)
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?
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.
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
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