You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi there,
I have a list that contains multiple options. Each option is for a particular team.
I'm trying to send an automatic message with all items selected in this list + adding the email address of the team in charge of this particular option. in some cases, same team is doing multiple options. My original code was this:
{{#issue.customfield_16302}}
{{#if(equals(checked, true))}}- {{name}}
{{#if(equals(name, "option1"))}}name1@domain.com{{/}}
{{#if(equals(name, "option2"))}}name2@domain.com{{/}}
{{#if(equals(name, "option3"))}}name3@domain.com{{/}}
{{#if(equals(name, "option4"))}}name3@domain.com{{/}}
{{#if(equals(name, "option5"))}}name3@domain.com{{/}}
{{/}}{{/}}
It worked, but I've observed each "if" is adding an empty line in the email generated, making the email full of empty lines.
I've tried this code in order to put in a single line all options that has the same team assigned:
{{#issue.customfield_16302}}
{{#if(equals(checked, true))}}- {{name}}
{{#if(equals(name, "option1"))}}name1@domain.com{{/}}
{{#if(equals(name, "option2"))}}name2@domain.com{{/}}
{{#if(equals(name, "option3", "option4", "option5"))}}name3@domain.com{{/}}
{{/}}{{/}}
But it didn't print anything. It didn't fail either.
Any suggestion? I've tried with OR. No luck
Thanks