Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to write a script listner for automatic notification mail for which are in 3 days due

uday
Contributor
May 10, 2021

Hi,

what i am asking is I have written a script Listener for automatic due notification and i have done it but the problem is i missed something in that and the notification i am getting like this

1. Issue key: DPMZ

2. asignee: BCC

3. Due date: BBb

4.Summary: DDDD

But i need the notification mail like this

1. Issue key: DPMZ
2. assignee: BCC

3. Due date: BBb

4.Summary: DDDD

while clicking on the issue key it will navigate me to the issue.

regards

Uday

1 answer

1 accepted

0 votes
Answer accepted
Prince Nyeche
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.
May 11, 2021

I believe email is sent in a html body, so can you define the <a href> tag and append the issue key there with a default url such as "https://mydomain.jira.com/browse/${issueKey}". So once you receive the notification, it can have the link embedded?

uday
Contributor
May 11, 2021

Hi Prince

 Thanks for your response, Could you please elaborate this and tell me how to write the script listners and also url

 

Regards

Uday 

Prince Nyeche
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.
May 11, 2021

Something in this nature, you need to do in the email template you're using to send.

final emailTemplate = """
Hello user

1. Issue key: <a href="https://mydomain.jira.com/browse/${issueKey}" target="_blank">${issueKey}</a>
2. asignee: ${asignee}
3. Due date: ${dueDate}
4.Summary: ${summary}
"""

 

Suggest an answer

Log in or Sign up to answer