Hi, Is it possible to create an email notification to the DueDate validation?

I mean when the DueDate is more than 2 weeks from the SystemDate then an Email notification must be send to the Project Lead.

3 answers

You can create a filter with the Due Date criteria and create a subscription. The project lead can subscribe himself for getting this notification. Also if you and the project lead belongs to a common group, you could also create a group subscription for the filter.

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

0 vote
Mizan Community Champion Feb 27, 2012

Hi ,

You can create a Jira service which does this .

Thank you,but can you ellobarate please

Mizan Community Champion Feb 27, 2012

You can create a service which checks the due date of the issues if its more than 2 weeks then a mail is sent to the Project lead . This mail can be a comment on that specific issue . so you actually need to automatically add a comment on this jira issue mentioning a message that 2 weeks has past the issue is due .

Hope it helps :)

Mizan Community Champion Feb 27, 2012

You can use jelly script as a service .. have a look at this similar sample jelly service

Hi,

if you dont have to create via service then you can try this approach where i have defined the webwork entry in the atlassianplugin.xml.

now you can get the required Due date from the class .

for your vm file you can simply add the code and send the email to project manager as it is a type of user.


try{
SmtpClient client = new SmtpClient("mail.xxxxx.xxx");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: " + to);
message.println("Subject: Sending email from test!");
message.println("This was sent from a page!");
message.println();
message.println();
message.println();
client.closeServer();
}
catch (IOException e){
System.out.println("ERROR SENDING EMAIL:"+e);
}

may be you have to make certairn changes to code.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

111 views 0 3
Read article

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