Details
Description
UserMessageUtil does not display messages correctly. Sometimes the flag is displayed on transition but not always.
To reproduce:
- Create a custom scripted post-function with the following inline script on transition In Progress -> In Progress (transition doesn't really matter):
import com.onresolve.scriptrunner.runner.util.UserMessageUtil UserMessageUtil.success('Transitioned!')
- Message may be displayed.
- Transition again, message is not displayed.
It seems that the context that is passed from the JIRA.Events.NEW_CONTENT_ADDED event is null when the message is not displayed and we simply return in this case.