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

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

14 votes
Answer accepted

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

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)

Like Wendy De Jager likes this

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 [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

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
Community showcase
Posted in Jira

Calling all Jira Cloud users! Give us feedback on our exploration of a new navigation.

Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...

1,060 views 16 12
Join discussion

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