Versions Compared

Key

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

...

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)
       #if ($issue.fields.duedate and $jirassimo.isAfter($context.today, $issue.fields.duedate))
       <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
    #end
</table>
<br>
<br>
Issues that are In Progress but have not reached their due date yet<br/><br/>

<table border=1>
    <tr>
       <th>key</th>
       <th>summary</th>
       <th>assignee email</th>
       <th>Date Created</th>
       <th>Due Date</th>
       <th>Status</th>
    </tr>
    #foreach ($issue in $issues)   
       #if ($issue.fields.status.name == "In Progress" and $issue.fields.duedate  and !$jirassimo.isAfter($context.today, $issue.fields.duedate))
          <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>
               <td>$issue.fields.status.name</td>
          </tr>
       #end
    #end
</table>


On line 12, we're making sure that issue we're working on has duedate assigned and it is after today. Issues that satisfy this criteria are considered to be missing their due date.

On line 37 we have a condition that will evaluate to true only if issue is in status "In Progress" and it has due date assigned and that due date has not yet come.