How to use IF inside a mail message

Bertrand_DELAITRE April 12, 2019

With automation for Jira, I want to send a mail to assignee but I need something like that is the mail body

{{#=}}IF({{field1.isEmpty()}},{{field2}},{{field1}}{{/}}

But it doesn't work. I always have a blank line.

Are the mathematical functions usable inside mail body?

1 answer

1 accepted

0 votes
Answer accepted
Nick Menere
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2019

Hi Bertrand,

 

You can use defaults to provide a value if the value doesn't exist:

 

{{issue.field1|issue.field2}}

Does this work for you?

Cheers,

Nick

Bertrand_DELAITRE June 10, 2019

I forgot to thank :)

Suggest an answer

Log in or Sign up to answer