Forums

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

Custom Field: JavaScript web-resource is not loaded while using quick create issue form

Kirill Nazarov June 21, 2023

Hi all! 

 

I'm implementing custom field. 

 

In atlassian-plugin.xml file I've defined some web-resources required for my custom field. 

 

If I open CreateIssue.jspa page directly -> JS loaded correctly. 

But If I hit Create button and new quick edit form opened - my JS not being loaded. 

 

Any suggestion? 

1 answer

1 accepted

0 votes
Answer accepted
Kirill Nazarov June 22, 2023

The closest answer is provided in https://community.atlassian.com/t5/Answers-Developer-Questions/Strange-JavaScript-problem-in-create-screen/qaq-p/531033

 

Once Create button hit - in fact only new context added to page, hence I need to have some sort of init function in my JS and bind to page events like it is suggested in answer.

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
// Do whatever you need
});

Suggest an answer

Log in or Sign up to answer