Problem:
The JMWE Email issue(s) post-function is not working as expected, and the below error is seen in the logs:
Warning |
---|
Incorrect request: ["No recipients have been defined for the notification."] |
...
If the recipient(s) added in the JMWE Email issue(s) post-function is the same as the “Run As” user added in the post-function, then this becomes a self-notification (user in “Run As” = recipient of the email).
So, in this case, if the “Receive emails when you make changes to issues” is unchecked in that user’s profile, then the user is not considered a recipient, and hence, the error below error is thrown in the logs.
Warning |
---|
Incorrect request: ["No recipients have been defined for the notification."] |
...
…and also in the documentation here:
...
Solution:
So, to avoid the error and to receive the email successfully, either the below option must be checked in the user’s profile or the “Run As” “Run As” should be changed to “Add-on” user in the post-function configuration:
...