Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I use text smart values in math expressions?

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?

1 answer

I tried this {{#if(issue.issueType.id.eq(10912))}}:siren:{{/}}

It worked for me!image.png

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you