Parts of javascript not working in issue navigator

Does it stop working when you navigate from one issue to the other? If so, it might be because the target has changed and that your callbacks still point to previously viewed HTML elements.

Try to hook up to Jira events such as NEW_CONTEXT_ADDED. Depending on which version of Jira you’re targetting, you could inject the Jira module for the events and work from that. E.g.:

require([
			'jira/util/events',
		  	'jira/util/events/types',
		  	'jira/util/events/reasons',
		 ], function(Events, EventTypes, EventReasons) {

	"use strict";
	
    Events.bind(EventTypes.NEW_CONTENT_ADDED, function(e, jiraContext, reason) {
        switch (reason) {
        case EventReasons.pageLoad:
        case EventReasons.panelRefreshed:
        case EventReasons.dialogReady:
        case EventReasons.inlineEditStarted:
            break;
        }
    });

You should also take care of clearing out any previously linked function otherwise, if the user browses many issues, you may end up with functions being called all over the place and freezing the browser, especially if the function is a little bit heavy.