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

This widget could not be displayed.

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

This widget could not be displayed.
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

This widget could not be displayed.

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

510 views 3 18
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