It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Notification when a Due Date is near or past

Jill Pate Sep 25, 2012

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

12 votes
Answer accepted
Renjith Pillai 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.

Jobin Kuruvilla [Go2Group] Community Leader Oct 12, 2012

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

Thomas Becker Sep 11, 2015

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?

Daniel Speck May 10, 2016

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

Josh Rogers Sep 02, 2016

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

6 votes
Jobin Kuruvilla [Go2Group] Community Leader Sep 25, 2012

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()

Jobin Kuruvilla [Go2Group] Community Leader Sep 25, 2012

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!

Jill Pate Sep 25, 2012

Thanks!

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

Jill Pate Sep 25, 2012

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

Thierry Lach Aug 28, 2013

I think that the past due should be

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

Thierry Lach Aug 28, 2013

I think that the past due query should actually be

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

(comparison is backward)

Like Wendy De Jager likes this
2 votes
Riada Apr 08, 2013

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

0 votes
Vishali Oct 14, 2012

You can write a jelly script as well.

http://permalink.gmane.org/gmane.comp.java.jira.user/52095

0 votes
Edson Sossai Feb 07, 2013

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}">

0 votes
Vishali Feb 07, 2013

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.

0 votes

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

Monique van den Berg Community Manager Jan 10, 2018

@Vladimir Horev [Raley], 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!

Like # people like this

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

Vladimir/Jirassimo

Monique van den Berg Community Manager Jan 16, 2018

No problem @Vladimir Horev [Raley] -- 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 Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

773 views 0 12
Read article

Community Events

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

Events near you