Is it possible to display a header for sub task section in the view-issue page for jira 5.1.x?

If you add many columns to the sub task section in view-issue page, it becomes very clumsy specially if we have multiple custom fields of the same type. Is there any way to add a header to say the name of the custom field whose value is being shown?

2 answers

1 accepted

0 votes
Accepted answer

Put this in the announcement banner

<script type='text/javascript'>
AJS.$(document).ready(function() {
$('#issuetable').prepend('<thead><tr><td></td><td>Summary</td><td>Type</td><td>Status</td><td>Assignee</td><td>Progress</td><td>Order</td><td>Actions</td></tr></thead>');

});
</script>

Hi Renjith,

I understand what you're trying to do here. Unfortunately, it didn't work for me. $('#issuetable') strangely returns null.

Also none of the dashboards are not displayed when I put this script in the announcement banner.

Regards,

Smruti

Sorry Renjith, I had missed AJS. before $('#issuetable'). It works perfectly now with AJS.$('#issuetable'). Thanks a lot. Please make the change in your answer so that I can accept it.

This works but disappears when clicking to a link to a different issue. A control-refresh of the screen brings it back again.

 

Just wanted to say THANK YOU Renjith for this brilliant and easy to implement solution!!!

Gives us just what we need.

Why this is deemed "non essential" in JIRA I have no idea....

Thanks again!!!!

0 votes

Not without changing the bundled plugin that renders the view issue page now.

Can you please provide details on which plugin to change?

jira-view-issue-plugin, I would think!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,117 views 0 8
Read article

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