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?
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