Versions Compared

Key

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

...

Code Block
titleConditional sending of attachments
linenumberstrue
#set ($totalLength = 0)    
#foreach ($att in $issue$!issue.fields.attachment)
   #set($totalLength = $totalLength + $att.size)
#end    

#if ($totalLength < 10000000)
  #foreach ($att in $issue$!issue.lastcomment.attachments)
     $jirassimo.includeAttachment($att.id)
  #end   
#else 
     Attachments are too large for sending with email ($totalLength), please download them from Jira
#end

...