I am trying to use smart values to insert text into the Send Slack message automation. I can insert text values easily like this:
*{{issue.issueType.name}} (Sev {{issue.severity}})* <{{issue.url}}|{{issue.key}} - {{issue.summary.remove("\n")}}> reported by *{{reporter.displayName}} (<mailto:{{reporter}}|{{reporter}}>)*
What I want to do, is given a certain Issue severity level or issue type, insert an icon in the message. If I use issue.severity, I get something between 1 - 5. If I use issue.issueType, I get the numerical id of the type. I thought that by doing something like this...
{{#if(issue.severity.eq(1))}}:siren:{{/}}
...or...
{{#if(issue.issueType.id.eq(12300))}}:siren:{{/}}
...it doesn't print anything. I have also tried:
{{#if(issue.severity.asNumber.eq(1))}}:siren:{{/}}
...but nothing either. Any ideas how I can use these issue fields for doing this type of function?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.