Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

QProblem: How to write a template for a scheduled notification that will be sending out issues which are beyond their due date. The notifications should be sent to assignees of the issues and issues 

A:Solution

1) Create a new Custom scheduled notificationJira issues digested messaging notification configuration

2) Provide a CRON expression that specifies how often the notifications should be sent. In our case we want to send daily, so this will serve as a good start:

...

4) Specify the report recipients by choosing Assignee in combo-box "To". The issues retrieved in step 3 will be grouped by value chosen in step 4, so you don't have to worry about how to send the right issues to the right people.

  5) Specify subject of your email:  

Code Block
titleEmail subject
linenumberstrue
Your overdue issues

6) Make sure that Send As = Separate emails

7) Add the following message template

Code Block
titleMessage template
linenumberstrue
Issues that have past due date <br/><br/>

<table border=1>
    <tr>
       <th>key</th>
       <th>summary</th>
       <th>assignee email</th> 
       <th>Date Created</th>
       <th>Due Date</th>
    </tr>
    #foreach ($issue in $issues)       
       <tr>
           <td>$issue.key</td>
           <td>$issue.fields.summary</td>
           <td>$!issue.fields.assignee.emailAddress</td>
           <td>$!issue.fields.created</td>
           <td>$!issue.fields.duedate</td>       
       </tr>
    #end
</table>
<br>

...