Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up warning not working for issue creation transition

Flavio Beck
Contributor
July 19, 2021

Hello,

I have been using a post-function script to show a popup message for some transitions

import com.onresolve.scriptrunner.runner.util.UserMessageUtil

def flag = [
type: "warning", //Other possible options are "info", "success", "error"
body: "<h3> MESSAGE HERE </h3>",
close: "manual",
]

UserMessageUtil.flag(flag)

 but I tried for the creation transition and it did not work even in different positions.

 

Also I tried to use a scripted behaviour:

 

getFieldById("customfield_xxxx").setHelpText("<script>" + "\n" +
"\$('#issue-workflow-transition-submit').on(\"click\", function() {" + "\n" +
"AJS.flag({" + "\n" +
" type: 'warning'," + "\n" +
" title: 'TITLE HERE'," + "\n" +
" body: '<p> MESSEGE HERE </p>'+" + "\n" +

" ' <!-- .aui-message --><span class=\"aui-icon icon-close\" role=\"button\" tabindex=\"0\"></span>'" + "\n" +
"});" + "\n" +

"\$( \".request_ga\" ).on( \"click\", function() {" + "\n" +
" \$('.trigger-label:contains(\"GA Request\")').trigger(\"click\" );" + "\n" +
" \$('#aui-flag-container').remove();" + "\n" +
"});" + "\n" +

"});" + "\n" +
"</script>")

 

Bu it have not worked as well.

 

Any suggestion?

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events