I have been creating custom PHP application to allow users to post issues to Jira. The PHP application work great, but now I have been asked to set the application to generate and email that will be sent to the user when the status of their ticket changes or when a comment has been added to the ticket by the assignee. Since I am using Rest API's in PHP to post the tickets and comments from the user’s side I can successfully send an email.
My question to the group is how to send an email to the user from the JIRA side when the assignee changes the status or a comment to the ticket? Also there is one cavot to my question that must be pointed out the users email exist in a custom field.