JIRA.Messages.showSuccessMsg not working in Jira 6.4

Khanh Nguyen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2015

I had JIRA.Messages.showSuccessMsg in an Announcement Banner but not working in JIRA v6.4

Example. . .

<script >
var pathname = window.location.pathname;
if (pathname.indexOf("Dashboard.jspa") >= 0)
{
   JIRA.Messages.showSuccessMsg('Some message here');
}
</script>

Is there a way to do this in JIRA 6.4?

1 answer

1 accepted

1 vote
Answer accepted
Daniel Wester
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2015

If you're using JIRA Cloud you'll need to use https://developer.atlassian.com/static/connect/docs/latest/javascript/module-messages.html

so it would be something like

AP.require("messages", function(messages){
  //create a message
  var message = messages.success('title', 'success message example');
});

Suggest an answer

Log in or Sign up to answer