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.