ScriptRunner - UserMessageUtil how to specify time length of pop up message

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

2 answers

Currently, there's no way to do this. There is an issue for it in our backlog, which you can vote for / watch.

https://productsupport.adaptavist.com/browse/SRJIRA-1116 

Is it available now?

It is not. That's why the feature request is still marked "TODO".

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,752 views 3 11
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