Notification email to user outside of working hours

Hi,

I'm trialing JIRA & JIRA Servicedesk and was wondering what the best way would be to email a user when an issue is logged outside of working hours. I'd like the workflow to work as follows:

1. User submits an issue

2. If the issue is submitted after 5.30pm or before 9.00am an email alert is sent to a specified user

3. If the issue is submitted during working hours the normal workflow applies

Thanks

Claire

1 answer

This widget could not be displayed.

Hi Claire,

This would be implemented in the same way you would do any sort of automated filter-based email. You would set up a saved filter to identify the issues that you want to notify, then you'd use a jelly runner script to send out the message, then mark it done somehow. Here's a few examples:

https://confluence.atlassian.com/display/JIRACOM/Automating+issue+timeouts

https://confluence.atlassian.com/display/JIRA/Jelly+Escalation

The only thing you have to figure out in your case is how you mark them as notified so they fall off the filter list and don't KEEP getting notified. You might do this with a state transition, or maybe a custom field. So the algorithm might look like this:

{Run every 5 minutes}

var list = check filter of issues submitted after 5:30 pm

if ( list.length > 0 ) { // We have someone to email

for ( each issue in list ) {

add comment to issue with message (will be emailed to reporter)

transition issue to a waiting for business hours workflow state

}

}

Maybe that's enough to get you thinking about a creative solution. It's going to take a little bit of programming, but the up-side is that it'll be exactly what you want when you are done.

E.L.

Unfortunately this isn't available in OnDemand, this will only work with the download version.

Thanks for the replies.

David - do you mean that this jelly script function isn't available at all? Is there another solution for OnDemand?

Jelly scripts are not available in OnDemand - https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand

I believe this is a feature request for Service Desk, and is being implemented in a (near) future release - https://jira.atlassian.com/browse/JSD-16

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 Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

147 views 16 7
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