Hello Community,
I have been exposed to UserMessageUtil function from ScriptRunner.
import com.onresolve.scriptrunner.runner.util.UserMessageUtil
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!
-Roberto
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.",
close: "manual",
]
UserMessageUtil.flag(flag)
The flag will remain open until the user clicks the x
But that's exactly what OP (and I) don't want, Jira messages dissapear in like 3 seconds or so automatic, I would like to do the same with UserMessageUtil, also close key in flag seems to have changed to "closeable" and the value to a Boolean instead of "manual".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Currently, there's no way to do this. There is an issue for it in our backlog, which you can vote for / watch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not. That's why the feature request is still marked "TODO".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.