You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Varying salutation based on a custom gender field
{{#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}}
Print all unique comment author names with format "#. Name"
{{setVariable "commentAuthors" (pluck issue.comment "author.displayName")}}
{{#each (unique commentAuthors)}}
{{add @index 1}}. {{this}}
{{/each}}
Check if an issue is older than 14 days
{{setVariable "14DaysAgo" (subtractDay now 14)}}
{{#if (isBeforeDay issue.created.raw 14DaysAgo)}}
<!-- ... -->
{{/if}}
Click here to expand...
{{#or (eq "a" "b") (eq "c" "d") (eq "e" "f")}}
<!-- -->
{{/or}}