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
AUG Leaders

Atlassian Community Events