Versions Compared

Key

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

...

Code Block
linenumberstrue
#foreach ($att in $issue.lastcomment.attachments)
   $jirassimo.includeAttachment($att.id) 
#end


Attaching files added during workflow transition

In Jira you can configure your workflow transition in such a way that user will be asked to provide a comment when transiting the ticket. Here's an Atlassian article explaining how to do that: https://confluence.atlassian.com/jirakb/how-to-add-a-comment-during-a-transition-779160682.html

But you can also add a file upload functionality there, so, the user can upload a new file together with comment when executing a transition. This file is not a part of the last comment and if you want to send it via email, then use the following code snippet

Code Block
titleSending a file added during workflow transition
linenumberstrue
#foreach ($item in $issue.last_change.items) 
  #if ($item.fieldId == "attachment")
    $jirassimo.includeAttachment($item.to)
  #end
#end



Attaching ALL files that are uploaded to specific ticket

...