Tried looking for an answer but nothing came up. I'm trying to use multiple issue collectors on the same page but it doesn't seem to work. They both work separately so I know the issue collectors themselves work as expected; however, trying to use them on the same page and they don't work
<a href="#" id="bod1" class="padded">BoD 1 test</a><br>
<a href="#" id="bod2" class="padded">BoD 2 test</a>
<script>
$(document).ready(function(e) {
window.ATL_JQ_PAGE_PROPS = $.extend(window.ATL_JQ_PAGE_PROPS, {
'<COL1>' : {
triggerFunction : function( showCollectorDialog ) {
$('#bod1').click( function(e) {
console.log("id bod1 clicked");
e.preventDefault();
showCollectorDialog();
});
}
}
, '<COL2>' : {
triggerFunction : function( showCollectorDialog ) {
$('#bod2').click( function(e) {
console.log("id bod2 clicked");
e.preventDefault();
showCollectorDialog();
});
}
}
});
});
</script>This is my current code,i've also tried without the "= $.extend(window.ATL_JQ_PAGE_PROPS," and putting the triggerFunction in quotes but it doesn't work either way. Like i said putting them normally one at a time works it's just this multiple issue collector that isn't working. They aren't attaching to the links (according to fireBug
).
I am placing the script link they give on the JIRA collector page just left it out and changed the name here for client security concerns.
They are using JIRA 6.0.5, double checked the archived doc but it's the same syntax as the new one so not sure why it isn't working