Redemption of Atlassian Answers T-Shirts, Backpacks and Jackets is temporarily unavailable while we migrate to a new third-party provider for https://swag.atlassian.com.
Thanks for any help.
Ok so I found the answer for this finally.
For Project tab panels is used
and for the User profile tab panels
where tabId is the ID of the tab which we are switching to and function is the function that is to be executed after the tab is loaded.
The linked page mentions JIRA.Events.NEW_CONTENT_ADDED - did you try that?
Yes I did and tried everything mentioned on that page. It seems that I have some problems with <context>atl.general</context> as it caused some issue with plugin loading and it did't load while starting JIRA