Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bind Javascript doesn't work when creating a new issue in front of non modal screen

Jonny
Contributor
December 9, 2020

Hi All,

  I have some javascript I execute using jsincluder, binded against a form. However, I've noticed an issue in that if I open the form in full view, e.g.  http://jira.corp.local/CreateIssue.jspa?issuetype=10501&pid=10200 

Basically from this full screen mode, if I click the create button it opens another instance of my form but the code does not execute. It's not something our users should need to do but if they did open it then code doesn't exist, and in this instance the code shows and hides fields based on selection.

Is there any solution for this? thanks.

1 answer

0 votes
mogavenasan
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.
January 4, 2021

Hi @Jonny,

From what I can read on the JsIncluder page - it only works on create, view, edit, and transition issue pages and dialogs. That means a new tab page is not part of the scope - this could be the app's limitation.

You can inject Javascript into the Jira's Announcement Banner to mitigate this scenario, however, I'm not sure if this will fit into what you are doing.

Thanks,
Moga

Suggest an answer

Log in or Sign up to answer