How to display the JIRA plugin functions in a spinner ( droplist ) on the page of the summary of projects ?

How are you?

Recently, I have updated my JIRA to version 5.2.3. Then it caused that my report plugin changed its display format: from a spinner on the top-left side of the projects' summary page, to a visualable unfolded list on the right-down side of the projects' summary page.

Therefore, I want to change it back to show in a spnner list, which named "report" and the list contants all the functions in the plugin.

Thanks a million, if someone can share me any information about this issue.

May u have a nice day! All the best~~~^_^

2 answers

1 accepted

Accepted Answer
2 votes

Stuff this into your annoucement banner and you are going to be surprised :) This is for JIRA 5.2.5.

<script type='text/javascript'>
AJS.$(document).ready(function() {


var nwelem = '<table width="100%"><tr><td><h2>Summary</h2></td><td style="text-align:right;"><div id="reportDropDown"><div class="aui-dd-parent"><h2><a href="#" class="aui-dd-trigger unstyled">Reports</a></h2><ul class="aui-dropdown aui-dropdown-left aui-box-shadow">';
AJS.$('#fragprojectreports').children('.mod-content').children('.issues').children('.item').each(function(i){

var hf = AJS.$(this).children('.issue').attr('href');
var name = AJS.$(this).children('.issue').text();
nwelem = nwelem + '<li><a href="' + hf + '">' + name + '</a></li>';
});

nwelem = nwelem + '</ul></div></div> </td></tr></table>';


AJS.$('#project-tab').children('h2').replaceWith(AJS.$(nwelem));

AJS.$("#reportDropDown").dropDown("Standard");
AJS.$('#fragprojectreports').hide();
 

});
</script>

EDIT: Included the javascript block in the beginning.

Apart from modifying JIRA code, I am not sure how to achieve this. Should be possible with some javascripting, but may be tedious to do it.

Btw, that is the issue with this format?

thank you very much. And yes, this is a issur about format. Meanwhile, I prefer the jira company can support a method to choose the format, as they had it before.

I can echo what Renjith says, I had a quick look at something similar the other day - you'll need to amend the core code that's generating the http page. Or write javascript that re-arranges the screen.

Thanks a million. Could you tell me more information about how to amend the core code which generating the http page, or show me some links for the detail solution?

That's so nice u all, thanks again ^_^

That's going to be tough :) You can download the source code from https://my.atlassian.com if you have a license and start playing around with that code. And it is not going to be easy.

https://confluence.atlassian.com/display/JIRA/Building+JIRA+from+Source

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,137 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you