I would like to be able to send an email when a user is added or removed from Project Role in a project in Jira Software Cloud.
In Jira Server I used Script Listener in Scriptrunner and there I could notify with email when a user was added/removed from Project Role while listening to 'ProjectRoleUpdatedEvent'.
I am looking for a way to get the same functionality in Jira Cloud.
I have looked into what is available in Scriptrunner (Script Listener), Webhooks and Jira Automation and have not found anything useful.
It seems to me that 'Project Updated' event is not triggered on role update.
Is there a way for me to use REST API or some event listnening to audit log?
I have not used REST API calls much so if someone could give me some idea how to start it would be much appreciated.