Problem:
The JMWE Email issue(s) post-function is not working as expected, and the below error is seen in the logs:
Incorrect request: ["No recipients have been defined for the notification."]
Reason:
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 “Receive emails when you make changes to issues” is unchecked, the user is not considered a recipient, and hence, the error below is thrown in that user’s pro logs.
Incorrect request: ["No recipients have been defined for the notification."]
The below warning is mentioned on the JMWE Email issue(s) post-function configuration page regarding “Self-notifications”:
…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” should be changed to “Add-on” user in the post-function configuration:
To access the above setting, go here JIRA_INSTANCE_URL/jira/your-work
and follow the below steps: