On this page

Use case

Obtain a value formatted as a JSON from an Elements Connect custom field and add it to an email.

Configuration

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

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

Email content

Subject

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

Email format

Choose Text

Body

Enter the following expression.

{{{"Value: " + getFromJSON(%{issue.cfAAAAA}, "keys")}}}

You can replace "keys" in the JMESPath with any word that precedes the value in the JSON, as for example, "name" or "displayName".

Variant
This variant is used when the value is presented between tags as in <content><value>Example 01</value></content>
findPattern("XML string to be parsed", "(?<=(\\Q<value>\\E)).*?(?=(\\Q</value>\\E))")
Replace the field code %{issue.cfAAAAA} with the field code of your custom field and change the title of the table in the previous expression.

If you still have questions, feel free to refer to our support team.