Currently in a JIRA ticket that has Isue Links - the default is to show the first 5 links followed by a "Show x more links..." which will expand the Issue Links display to show all links.
Is it possibile to either force the default to display all issue links or to change the default to show 10 links?
It is hard coded in LinkBlockContextProvider class.
private static final int DEFAULT_DISPLAYED_LINK_COUNT = 5;
You ca override it in the linkblock.vm in the jira-view-issue-plugin, which is a bundled plugin. Some tips on editing a bundled plugin can be found in this post.
http://www.j-tricks.com/1/post/2012/05/modifying-atlassian-bundled-plugins.html
Wow, thanks a lot Jobin!
I've found the code, but there is no such a line in linkblock.vm.
I'm not sure what to change in the code, could you please suggest?
http://dl.dropbox.com/u/27118118/linkblock.vm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Totally *Untested* suggestion. Put the following line after the first #set statment.
#set ($modifiedDisplayedLinkCount = 10)
And then replace all uses of $displayedLinkCount with $modifiedDisplayedLinkCount
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yooohoo! Incredible, it works :) Thank you so much!
The only issue is that amount of clones left as hidden (in braces) is not displayed correctly. Attached a screenshot.
I have no idea where to find and fix it. Maybe you know where to fix this thingy?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That goes again to the action class. You might be better of removing that. Remove this:
<span>($hiddenLinkStats)</span>
The count is there in the link anyways!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Modifiying the JIRA source code might become a real headache making harder upgrade to newer versions.
On the other hand, the Links Hiearchy add-on shows all the linked issues at a glance without requiring you to modify any source code. By default, it expands the first depth level but users can configure it to auto expand n-levels automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another workaround for that:
If you are using Google Chrome Browser, install the StyleBot plugin, and add a rule for your JIRA installation:
dd.collapsed-link {
display: block;
}
This always displays ALL links, no more limits...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! Additionally I added this to hide the "expander" button:
div#show-more-links {
display: none;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy,
I'm sure it can't be changed inside Jira. Maybe you will need to a little code change in the Jira files. Not sure if it's worth the trouble.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramiro,
In our case we really need to increase the amount of links shown there. We need at least 12...
I spent a couple of hours digging the code of Jira and didn't find any suitable info.
Do you know where to search for it?
Thanks for any help in advance.
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.