Service Desk Jira.Events.NEW_CONTENT_ADDED

Hey, people. How’s it going? I’m hoping somebody could help me. Kinda new here.

Recently I was developing a web-panel that I would initialize javascript for by listening to NEW_CONTENT_ADDED event. I’m trying to do something similar in customerportal now, but that event doesn’t seem to trigger, but it exists when I try to find it in the JIRA object in browser console.

The reason I’m doing this is because some elements of customerportal don’t refresh the page, but use ajax (?). ajaxStop() worked for inserting elements, and adding content if they existed, which is easy to check, but whenever I perform something that doesn’t actually insert an element to use as a sort of a flag, like getting json from Rest resource which itself triggers ajaxStop(), it get’s stuck in a loop.

Thanks in advance.

3 Likes