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

divya chennuru February 27, 2012

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

2 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2012

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 votes
tousifs
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2012

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.

0 votes
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2012

Hi ,

You can create a Jira service which does this .

divya chennuru February 27, 2012

Thank you,but can you ellobarate please

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2012

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events