Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleVarying salutation based on a custom gender field
Code Block
languagenone
{{#if (exists issue.customfield_11111)}} // check if the field is filled or empty
{{#eq issue.customfield_11111 "m"}} // check for the specific field value "m"
Dear Sir
{{/eq}}
{{#eq issue.customfield_11111 "f"}} // check for the specific field value "m"
Dear Madam
{{/eq}}
{{else}} // if the field is empty
Dear Sir or Madam
{{/if}}
Expand
titleIterating over an array saving specific values for later usePrint all unique comment author names with format "#. Name"
Code Block
{{setVariable "commentAuthors" (pluck issue.comment "author.displayName")}}
{{#each (unique commentAuthors)}}
{{add @index 1}}. {{this}}
{{/each}}
Expand
titleAccess outer variables from within each