Invalid license: Your Refined is only licensed for 10 users.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Problem How to create a notification configuration that would send out digest of changes and comments in issues happened since yesterday?

Solution

1) Create a new Notification configuration of type "Jira issues digested messaging". 

2) Set the value to Fired on input. This should be a CRON expression that represents when the notification configuration should be run. Use www.cronmaker.com to generate it for you.

For example, the value "0 0 9 1/1 * ? *" means that the notification configuration will be run at 9AM every day. When you enter your cron, Raley will show you when it will be run the next time as follows:


Pay attention that all the times are evaluated against UTC time zone. 

3) Now you specify a JQL rule that will be used as a filter for issues. Only those which match against it will be included into the digest. 

4) Specify subject of the email. 

5) Specify recipients using TO, CC and BCC. You can use a mix of values picked from combo-box'es and free-text expressions. During notifications configuration execution all issues will be grouped by recipients.

For example, if you have 10 assigned issues and 3 different assignees, then system may send 2 issues to assign A, 3 to assignee B and 5 to assignee C. Which assignee will receive which issue will be resolved automatically 



6) Finally, specify a message template. You can use our Template Wizard to simplify 

#foreach ($issue in $issues)
  #foreach ($history in $issue.changelog.histories)
     #if ($jirassimo.isAfter($history.created, $context.yesterday))
        #foreach ($item in $history.items)
            $item.field was changed from $item.fromString to $item.toString
        #end
      #end
  #end
 
   #foreach ($comment in $issue.fields.comment.comments)
      #if ($jirassimo.isAfter($comment.created, $context.yesterday))
        Comment by $comment.author.name: $comment.body
      #end
   #end
#end