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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.