Annoucement banner to add DOM function on field

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 answer

1 accepted

0 votes
Answer accepted
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

Try this:

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

Suggest an answer

Log in or Sign up to answer