Versions Compared

Key

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


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Within the Send email post function you have the possibility to attach the issue attachments to the created email.

In the following use case we show an approach to not only attach images, but also add them as inline images to the email.


UI Text Box
typewarning

This use case only works with images as attachments!


Configuration

UI Steps


UI Step

Add the Send email post function to the desired workflow transition or create a new transition.


UI Step
Define the basic configuration with the required and information you need to fill in for your email.


UI Step

Email content

UI Steps


UI Step

Subject

Enter a plain text and optionally use Field codes for the subject of your email.


UI Step

Email format

Choose HTML 


UI Step

Body

Enter the following expression:

Code Block
languagebash
linenumberstrue
{{{"<p><img src=\"cid:" + replaceAll(%{issue.attachments},", ","\"></p><p><img src=\"cid:")  + "\"></p>"}}}


UI Text Box
typeinfo

This way, all attachments will be added as inline attachment.

UI Text Box
typenote

Make sure that there are only images attached to the issue. Otherwise this won't work properly.




UI Step

Attachments

Choose All issue attachments


UI Step

Filter by file type

Choose other and insert "png,jpg" in the appearing input box.

UI Text Box
typeinfo

This way, file types like PDFs, or doc files will be ignored.







Screenshots



Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow" and ancestor = "32211207"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow functionSend email
Parser functionsreplaceAll()
Label



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titletododone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged