Hiding existing elements

Jira Version: 7.12.0

Dear Community,

i am developing an Add-On for our company which customize JIRA in a way, my company needs. I am searching for way, to hide existing elements. For example, there are some areas on the issue screen (view) which we don’t need. The “Hip-Chat” area for example. So, I’ve learned, that the “Hip Chat” thing is based on a web-panel. It is possible to hide this (and some other panels) by my own Add-On code / plugin.xml without modifying JIRA code itself? If yes, what do I have to do? I can’t see any “visible” property.

Thank you for your help.

Regards
Manuel

@m.miessner if it is an on-premise Jira server/data center instance you can create a P2 add-on with client-side Javascript code which is executed upon page load an in which you can change the HTML elements on screen. If it is Jira Cloud, you will have to create a browser extension to get the same results.

I am using Jira Server. Thank you very much remie. That helps me a lot.

Where would be the best place for such JavaScript? Is there a way to catch some kind of a “issue show” event where I could place JavaScript or do I need to create a velocity file for “show issue” which is technically empty except the Javascript part?

There is no need to add velocity templates. You should be fine with only a javascript file (see https://developer.atlassian.com/server/jira/platform/web-resource/) placed in either a specific context (https://developer.atlassian.com/server/jira/platform/web-resource/#web-resource-contexts-in-jira).

For instance, if you want to enhance the Jira view issue page, add a javascript resource with a context jira.view.issue and client-side code which will alter the HTML of the page.