Is it possible to change the length of Issue Links that display as more as possible?

Maggie Gu May 10, 2018

The link-summary of "issue links" panel can't be displayed to complete if I linked a long summary issue.

I use JIRA Software 7.5, and I found this resolution is available:  Is it possible to change the number of Issue Links that display by default?. Can't find linkblock.vm any more. I don't want to buy a plugin. Do you have any suggestion?

Any suggestions appriciated!Issue-links-panel.png

 

Thank

-Maggie 

1 answer

1 accepted

1 vote
Answer accepted
Javi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 15, 2018

Hi Maggie,

The link-summary of the "issue links" panel is managed via CSS in Jira. If you do Inspect Element, you can see within the div class link-content > link-summary that the summary of the issue is fully shown. 

If you remove the white-space: nowrap from .links-list .link-content > p, you should be able to see the entire link. 

If you wish to modify/control this, you will need to stop Jira then unjar the jira-view-issue-plugin-x.x.x.jar and edit the viewissue/links/links-container.vm. Remove the section "class="link-content"" and save the links-container.vm. After you have done this, jar the files and rename to jira-view-issue-plugin-x.x.x.jar. Make sure to replace the existing jira-view-issue plugin and replace with the new one. 

Next start Jira and you should now see the full description. It's one approach of getting the full description without getting too involved with completely modifying the CSS. 

Regards,

Javier A.  

Maggie Gu May 16, 2018

@Javi

Thanks for your reply. This is very helpful.

But after I deleted the section "class="link-content"”, the link-summary was gone.
error_link.png
Did I wrong something? Here is what I deleted:
< div class ="link-content" >
# if (${issueLinkContext.remote})
${issueLinkContext.html}
# else
# parse("/issuelink/localissuelink.vm")
# end
< / div >

BTW, I want to add custom fields to issue links panel, I modified it according to https://community.atlassian.com/t5/Answers-Developer-Questions/Need-to-add-fixVersions-to-the-issuelinks-view-pane/qaq-p/540998. But I can’t find “LocalIssueLinkUtils.java:”, so I only add 
< span style = "font-weight:bold” class ="name" > < span style="color:red" > CustomerName: </ span > $!{contextMap.customfield_10500} < / span >
custom_field.png

I am not familiar with it, could you help me?

Thanks in advance!
-Maggie

Javi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2018

Hi Maggie,

All you have to delete is class="link-content and nothing else. 

So it should look like the following

< div >
# if (${issueLinkContext.remote})
${issueLinkContext.html}
# else
# parse("/issuelink/localissuelink.vm")
# end
< / div >

Regards,
Javier A.

Maggie Gu May 28, 2018

@Javi Thank you so much! It's work!

Suggest an answer

Log in or Sign up to answer