Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi, how can I add a condition in "Send a custom email" postfunction that chech if assignee is a user "uforenc"?
issue.assignee = 'uforenc' or sth else?
Thank you
Hi @Urszula Forenc ;
issue.getAssignee().getKey() == "uforenc"
should work fine (assuming you want to work with the user key).
Antoine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you mean Script Runner's "Send a custom email" post-function, please try this one.
issue.assignee == 'uforenc'
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tansu,
I tried it, but with no result. Only this works:
issue.getAssignee().getKey() == "uforenc"
/ as Antoine mentioned.
Thank you
Ula
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.