Annoucement banner to add DOM function on field

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
Accepted answer

Try this:

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Jira

Meet the Jira Software 8.0 platform release

  Hello Atlassian community!   We're excited to share the Jira Server and Data Center 8.0 platform release.  With 8.0, teams will be able to work more productively and sca...

789 views 16 12
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