JS not loading when loading issue navigator for the first time


I have some javascript (just an alert) that should be displaying when an issue is loaded. The problem is, the JS is not loading when first loading the issue navigator view.

if i open an issue using http://genesis.s4e.cl:2990/jira/browse/TEST-2, the JS works OK.

if i go to the issue navigator http://genesis.s4e.cl:2990/jira/browse/TEST-7?jql=, when it loads for the first time, the JS is not shown.

but if i select another issue from this view (including the already selected issue TEST-7) the JS works:

my JS is:

		 ], function(Events, EventTypes, EventReasons) {

	"use strict";

    Events.bind(JIRA.Events.NEW_CONTENT_ADDED , function(e, jiraContext, reason) {


        switch (reason) {
            case EventReasons.pageLoad:

Any help is appreciated.

Thank you in advance.

Hi Angel Pea,

what context do you use for your javacript resource file? Cannot be an issue with used context?

Check different context in Jira (for example you can see list in another thread: https://community.atlassian.com/t5/Answers-Developer-Questions/web-resource-contexts/qaq-p/499508)

Let me know if it helps you.

Josef Pavelec