Details
-
Bug
-
Status: Done
-
Low
-
Resolution: Fixed
-
6.9.0, 6.17.0
-
None
-
2
Description
The user wishes to pop out a message with UserMessageUtil when Listener event "ProjectRoleUpdatedEvent" triggered.
However, UserMessageUtil seems to only work on the Listener event "Issue create/update" but failed on "ProjectRoleUpdatedEvent."
Steps to Reproduce
- Creat an Listener > mapped to all project
- Set the events to "ProjectRoleUpdatedEvent"
- Apply a simple UserMessageUtil script:
import com.onresolve.scriptrunner.runner.util.UserMessageUtil // get requestUrl as above UserMessageUtil.warning("Please authenticate to Confluence before executing this transition.")
- Update the Listener
- Go to the project setting > Users and roles
- Update any user's role
Expected Behaviour
A warning message should be displayed at the right corner of the page
Actual Behaviour
Nothing happens after editing the user role, I tried refreshing the page and nothing happened as well.
Workaround
UserMessageUtil works with "Issue Created" event
- Creat an Listener > mapped to all project
- Set the events to "Issue Created"
- Apply a simple UserMessageUtil script
import com.onresolve.scriptrunner.runner.util.UserMessageUtil // get requestUrl as above UserMessageUtil.warning("Please authenticate to Confluence before executing this transition.")
- Update the Listener
- Go to the project setting > Users and roles
- Update any user's role
- Warning message appears
Additional Info
I can confirm the Listener was triggered when there are updates on the user's role with a log error message.
Here I attached the result of the log after updating a user's role:
Attachments
Issue Links
- relates to
-
SRJIRA-5462 UserMessageUtil does not show flag message on Listener Event "Issue Commented"
-
- Triage
-