Versions Compared

Key

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

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

A:

1) Provide a CRON expression that specifies how often the notifications should be sent

...

Code Block
titleEmail subject
linenumberstrue
#foreach ($issue in $issues)
   #if ($velocityCount == 1)
      Daily digest of issues inIn progress, To Do and In Review with past due
   #end
#end
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> 
    </tr>
    #foreach ($issue in $issues)
       #if ($issue.fields.duedate and $jirassimo.isAfter($issue.fields.duedate, $context.today))   
          <tr>
             <td>$issue.key</td>
             <td>$issue.fields.summary</td>
             <td>$!issue.fields.assignee.emailAddress </td>
          </tr>
       #end
    #end
</table>


<br/><br/>
Issues that are In Progress<br/><br/>
<table border=1>
    <tr>
       <th>key</th>
       <th>summary</th>
       <th>assignee email</th> 
    </tr>
    #foreach ($issue in $issues)   
       #if ($issue.fields.status.name == "In Progress" and $issue.fields.duedate and !$jirassimo.isAfter($issue.fields.duedate, $context.today))   
          <tr>
             <td>$issue.key</td>
             <td>$issue.fields.summary</td>
             <td>$!issue.fields.assignee.emailAddress </td>
          </tr>
       #end
    #end
</table>