Raise message on the UI from custom listener

Is it possible to show a message ("You are not allowed to do what you've tried" - like) on the user interface from a custom listener?

2 answers

0 vote

Listeners don't have any access to the UI - they're background things that are usually triggered by user activity, but don't have to be.

Also, they happen *after* user activity.  So you would never be telling a user "you are not allowed", you would be telling them "it failed".

Still, allowing add-ons (sorry, apps) to send messages to users (in the form of the message box Jira displays in the top right corner of any page) would be super useful. This could be done through a REST API.

I have raised https://ecosystem.atlassian.net/browse/ACJIRA-1362 for that.

David

Ok, thank you.

I thought of a new custom field especially for a feedback message that can be updated on the server side as a workaround but that is not a pretty solution for my case.

It would be nice to be able to throw a CustomListenerException("my text") which the standard UI handles automatically as a message like it does on workflow validatiors.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Apr 19, 2018 in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

366 views 0 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you