JIRA.Events.NEW_CONTENT_ADDED not working correctly on agile board

Hey,

I am using the following code in my Jira plugin for the issue view:

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context, reason) {
	console.log("NEW_CONTENT_ADDED - "+reason);
	if(context.length > 0)
		console.log("context[0].id - "+context[0].id);
});

When the issue view is loaded, this code prints the issue modules:
image

But when using the same code on the agile board view and clicking on an issue, only the attachments module is printed to the console.

Anyone had such issue? Is this a bug ?

I would much appreciate help here.

thanks

Hi @OrenZehavi

boards (GreenHopper) is a little bit different element in Jira, please try:

AJS.$(GH).bind('issueTransitioned', function (event, data) {
    console.log("issueTransitioned");
});
AJS.$(GH).bind('issueCreated', function (event, data) {
    console.log("issueCreated");
});
AJS.$(GH).bind('issueUpdated', function (event, data) {
    console.log("issueUpdated");
});
...

Check also other events

AJS.$._data( AJS.$(GH)[0], "events" );

Cheers
Adam