It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cancel ProjectPermissionModificationRequestedEvent and display custom message in UI

Nikhil Tyagi Mar 15, 2019

We have custom plugin which listens on pre-events such as "ProjectPermissionGrantRequestedEvent". Now if we want to cancel this event we do something like



where customplugin.cancel =" Custom error "


In bitbucket, we can't see the custom error message whereas when we see the developer console,

For the api - PUT /projects/PROJECT_1/permissions/groups?permission=PROJECT_ADMIN&name=stash-users

The response was -


{"context":null,"message":"Permission modification canceled","exceptionName":"com.atlassian.bitbucket.permission.PermissionModificationCanceledException","details":["Custom error"]}


In the response,

1. The "message" is the bitbucket generic message but
2. If you see the "details", my custom error is registered but i'm not sure how to display it in the UI.


Please help.

1 answer

0 votes
Nikhil Tyagi Mar 19, 2019

Atlassian raised a bug for this  -

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,111 views 1 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you