Notification when a Due Date is near or past

Hi, I have created a "Task" Issue Type and would like an e-mail to be sent two days prior to a Due Date if the Status = Open or In Progress. Then another e-mail if the Due Date has past. Is that possible?

Thank you in advance for your time and assistance

7 answers

1 accepted

9 votes
Renjith Pillai Community Champion Oct 12, 2012

Jobin, there is a trick for that. Along with adding the condition, assignee = currentUser() anyone can do a group subscription (for whichever groups, even for jira-users) and the people will receive their own tickets which are reaching the due date in their mail.

Awesome. I was thinking about it but never tested it before. Jill, that should do it.

I thought the idea was, that me as JIRA Admin sets up this subscription for the group "jira-users" so that all users will receive daily reminders for overdue tickets. But I can´t set up a subscription for the group but only for me as user. Where would I set up a subscription for a group?

How do you add a condition? Is this somewhere on the issue view/page? How to manage group subscriptions?

The condition is in the filter definition.  If you have a filter (advanced, not basic) that include 'assignee = currentUser()', it will only show you tasks that are assigned to you.  Once you create the filter and make it visible to whomever you want to get the email, you can then subscribe to it for the group you want to recieve it, and each user in the group will get the email for the saved filter, with just the tasks assigned to themselves.  

 

Pretty slick.    +1 Renjith

4 votes

You can create a filter to get this result and subscribe it to mail.

https://confluence.atlassian.com/display/JIRA/Receiving+Search+Results+via+Email

The filter will have JQL similar to this:

issuetype = "Task" and Status in ("Open", "In Progress") and duedate >= -2d

For past due:

issuetype = "Task" and Status in ("Open", "In Progress") and duedate >= now()

You will have ask everyone to subscribe. You can't send it to assignee alone.

Actually, you can create a filter which includes assignee = currentUser() and share it with users. Then ask them to subscribe!

Thanks!

How do I have the e-mail go to the Assignee?

That will be a problem, as people will not subscribe. But thanks for your help.

I think that the past due should be

issuetype = "Task" and Status in ("Open", "In Progress") and duedate <= now()

I think that the past due query should actually be

issuetype = "Task" and Status in ("Open", "In Progress") and duedate <= now()

(comparison is backward)

Jill,

You have maybe solved this already, but maybe it is worth taking a look at the Notification Assistant for JIRA: https://marketplace.atlassian.com/plugins/com.riadalabs.jira.plugins.notificationassistant

Hope it helps

Hi Vishail

I try to use your Jelly however my installation we dont hause the email in the username. the email is only stored in the email field. How can i modify the script to add the email at the line below?

<email:email server="smtp.yourdomain.com" from="jira <at> yourdomain.com" to="${issue.assignee}@yourdomain.com" subject="[JIRA] Change Due: ${issue.key}">

Is the email field a custom field? If yes, try this:

<!-- Get CustomFieldObject from customFieldManager -->

<core:invoke on="${customFieldManager}" method="getCustomFieldObject" var="customFieldObj">

<core:arg type="java.lang.String" value="YOUR_EMAIL_CUSTOMFIELD_ID"/>

</core:invoke>


<core:forEach var="issue" items="${issues}">

<!-- Get the Issue from IssueManager -->

<core:invoke on="${issueManager}" method="getIssueObject" var="issueKey">

<core:arg type="java.lang.String" value="${issue.key}"/>

</core:invoke>

<!-- Get Custom Field Value -->

<core:invoke on="${customFieldObj}" method="getValue" var="EMAIL">

<core:arg type="com.atlassian.jira.issue.IssueImpl" value="${issueKey}"/>

</core:invoke>

Hope this helps.

Jill,

You can try Jirassimo notifications digested messaging to receive periodical warnings on issues where deadline is approaching or is missed. Check it out

Vlad

@Vladimir Horev [Jirassimo], please make sure you review our marketplace guidelines for vendors. 

I'll clarify this in the guidelines, but resurrecting a bunch of old threads to promote your plugin isn't quite within the spirit of the guidelines. Please be a bit more conservative about this type of promotion.

Thanks!

@Monique van den Berg, thank you for referring to the 1 year policy. We were not quite aware of that.

Vladimir/Jirassimo

No problem @Vladimir Horev [Jirassimo] -- I added more explicit language around this in the guidelines to make sure it was clear. Thanks for understanding!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot