I have been exposed to UserMessageUtil function from ScriptRunner.
I can make it work successfully, a pop up displays after a certain event, but I am not satisfied with how long the message pops up on the screen.
Is there anyway to set a time-frame for the message to stay on the screen?
Any help is greatly apprecaited!
This is not quite the "set a time-frame for the message" like you asked... but one option is to set the flag to manual closing.
First, construct your flag using a map. Then call the generic UserMessageUtil.flag method with your flag map as an argument.
def flag = [
type: "warning", //Other possible options are "info", "success", "error"
body: "Please Request for retrofit codes if not already done.",
The flag will remain open until the user clicks the x
I can confirm as of ScriptRunner 5.6.11 the above flag map format is still working. For close, use "auto" instead of "manual" and the messages should close automatically after a few seconds like the Jira ones. Without the flags I was having the same problem, messages did not close by themselves by default.
If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...
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