Hello !
The problem is the following:
We have a listener in which we record various user actions and then save data, one of them is user comments on PullRequests.
The part of the code to enter here would be:
import com.atlassian.bitbucket.event.pull.PullRequestCommentEvent
if(event instanceof PullRequestCommentEvent){
def pr = event.getPullRequest()
def comment = event.getComment()
And the problem it is giving us is the following:
Event handler failed: event:
com.atlassian.bitbucket.event.pull.PullRequestCommentAddedEvent file: null
com.atlassian.bitbucket.AuthorisationException: You are not permitted to access this resource