I am using the "JIRA Email This Issue (JETI)" add-on to handle emails. I want to utilize this rather than Jira's native share button since it saves the emails into the issue. Being the case, I want to hide the share button.
I want to utilize JavaScript in the announcement banner to achieve this:
<script type='text/javascript'> AJS.toInit(function() { AJS.$("#announcement-banner").hide(); var shareButton = AJS.$("#jira-share-trigger").closest("li"); shareButton.remove(); }); </script>
However, the behavior is inconsistent.
It works when:
It does not work when using a link within JIRA:
How can I get the announcement banner to fire every time rather than only at full page refreshes?
It might just be easier to use pure CSS to do this. At least for JIRA 6.4, something like this should work:
ul#opsbar-jira\.issue\.tools > li:nth-of-type(2) { display:none; }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.