Announcement Banner javascript via add-on

Required: If Issue Type list is changed - it should call despacito() function

Issue: With Announcement Banner - how can I?

Me: Dumb on Jquery side :-|

Is it possible to get onchange() for field added on create issue screen which overlays any other JIRA screen?

 

1 comment

Stephen Deutsch Community Champion Aug 31, 2017

This should work:

AJS.toInit(function() {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function(e,context) {
jQuery("#issuetype-field").on("change", function() {
despacito();
});
});
});

That really really worked. Just tested it. :) :)  Thanks alot !!!!

You're COMMUNITY CHAMPION -for sure,.

Comment

Log in or Sign up to comment
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

137 views 1 3
Join discussion

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