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

2 votes
Renjith Pillai Community Champion Feb 04, 2013

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.

0 votes
Renjith Pillai Community Champion Feb 04, 2013

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 ^_^

Renjith Pillai Community Champion Feb 04, 2013

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,789 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot