Defining web-resource context for loading javascript function in "Create Sub-Task" dialog

VINC Software July 3, 2015

Hello there,

I have to run some javascript when Create Sub-Task dialog is loaded.

How should I define web-resource context which have javascript file as a resource for this situation?

I saw the answer: https://answers.atlassian.com/questions/14816191

but I didn't see plugin descriptor and web-resource where is that 

jQuery(document).ready(function($)...

function implemented?

Here is the Dialog that I am referring to.

Thanks!createSubTask.png

1 answer

0 votes
VINC Software July 3, 2015

OK, I just used 

<context>jira.general</context>

as a context in web-resources to define my javascript file:

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
        setTimeout(function() {autoFillSummary();}, 50);
});

Suggest an answer

Log in or Sign up to answer