Remove user from Smart Value list

Riley Sullivan
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.
November 22, 2023

Hello,

I’m trying to set up a Jira automation to send out an email when specific trigger happens. The idea is to send it to all the watchers except for the iniator. I’ve been digging through the documentation but haven’t had any luck. Here are some example I’ve tried:

{{issue.watchers.emailAddress.remove("{{initiator.emailAddress")}} {{issue.watchers.emailAddress.replace("{{initiator.emailAddress", "")}} {{issue.watchers.emailAddress.replaceAll("{{initiator.emailAddress", "")}}

 

I'm able to produce the smart values independently, it seems that using smart values within the .remove and .replace functions doesn't work. I am assuming this is expected and seeing if there ideas for other approaches?

Screenshot 2023-11-22 at 8.43.33 AM.png

1 answer

1 accepted

1 vote
Answer accepted
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2023

Hi @Riley Sullivan 

This should work:

{{issue.watchers.emailAddress.remove(initiator.emailAddress)}}

Ste

Riley Sullivan
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.
November 27, 2023

🤦‍♂️ Oh my goodness, can't believe I didn't try that variation. Thank you so much!

Like Ste Wright likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events