We are trying to put JIRA into Websphere Portal navigation and it works OK except the WP code must be placed right after the body tag on each page. We placed it following the article about placing Google Analytics code but it is inserted inside a header with some styling applied, this makes all text with a href links blue. To what file we should move the code to be rendered before the header and still on each page?
Definitely javascript (jquery) in Announcement banner is a good wroking way to do this.
Try one of these, we use both of these in our jira instance for switching styles and additional scripts:
<script type="text/javascript"> jQuery(document).ready( function() { jQuery('body').prepend('INSERT YOUR HTML CODE HERE'); } ); </script>
or simply:
<script type="text/javascript"> jQuery('body').prepend('INSERT YOUR HTML CODE HERE'); </script>
Hi,
How to do apply This jQuery code added method for JIRA Service Desk Portal Customer View ??
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried the Annoucement Banner? If that does not work, you're gonna have to hack the decorators.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Announcement banner is rendered inside the header, the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How to do apply This jQuery code added method for JIRA Service Desk Portal Customer View ??
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why not just put it in the Announcement Banner, then use JavaScript to move it to the correct place in the DOM?
Paste this into the Annoucement Banner:
<div class="my-custom-banner">my custom banner</div> <script> AJS.toInit(function(){ AJS.$('body').prepend(AJS.$('.my-custom-banner')); }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
David, your solution works, however JIRA pages obviously load without the portal navigation and after that when script is executed, the navigation bar appears. Since it is pretty large, visual experience is far from ideal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Announcement banner is rendered inside the header, the same issue.
\decorators\navigator.jsp file looks ok but it does not work. The home page is surely rendered with another file, I don't know which one...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have a look into this file ...\jira\webapp\decorators\navigator.jsp. There you'll find all information you need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
\decorators\navigator.jsp file looks ok but it does not help. The home page is surely rendered with another file, I don't know which one...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.