Announcement Banner javascript via add-on

Piyush_Annadate August 31, 2017

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
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.
August 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();
});
});
});
Piyush_Annadate August 31, 2017

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

You're COMMUNITY CHAMPION -for sure,.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events