It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Order and columns of Issues in Epic

Mark Bednarski Aug 27, 2013

Hi

I want that the "Issues in Epics" list

  • show up in the ranked order set in GH
  • show the fixVersion column

Any ideas how this can be done?

Thanks in advance

Mark

7 answers

3 votes
Adam Beckerman Nov 14, 2013

I would like a solution for this as well. More specifically, the problem is that when viewing an Epic type issue full-screen, you see a list of "Issues in Epic". Same as this question and this question.

That list does not currently appear to have customizable columns, and it may not order the list according to Rank (I haven't tested to be sure, but it sounds from the above comments it isn't).

Is there currently a way to add fields to that view, such as Fix Version, Sprint, Rank, etc?

Separately, it would be great to see this issue list in the QuickView...has anyone identified a way to do that?

1 vote
Ert Dredge Jun 11, 2015

This is super great,@Renjith [Atlassian], thanks!  I updated it to show whether something was already slated for a sprint.  (Pretty hacky string manipulation, but got the job done.)

<script type='text/javascript'>
AJS.$(document).ready(function() {
 
AJS.$('#ghx-issues-in-epic-table tr').each(function(){
    console.log('Found epic table');
    var row = this;
    var issueKey = AJS.$(this).attr("data-issuekey");
    AJS.$.getJSON(AJS.contextPath() + '/rest/api/latest/issue/' + issueKey, function(data){
        console.log('Got data for - ' + issueKey);
	var sprintobject = data.fields.customfield_10530;
	var sprintname = "Unscheduled";
        console.log('sprintfull= ' + sprintfull);
	if (sprintobject != null) {
            var sprintfull = sprintobject.toString();
	    var sprintindex = sprintfull.indexOf("name=");
            console.log('sprintindex= ' + sprintindex);
	    if (sprintindex != -1) {
		var commaindex = sprintfull.indexOf(",",sprintindex);
		console.log('commaindex= ' + commaindex);
		sprintname = sprintfull.substring(sprintindex + 5, commaindex);
	    }
	}
        var actions = AJS.$(row).find('td.issue_actions');
        AJS.$(actions).before('<td class="nav">' + sprintname + '</td>');
    });
});
 
});
</script>
1 vote
Jasmin Jan 08, 2016

Does anyone know if and how I can change the order of the table? Or if it is possible to add a header and set the table as sortable.

0 votes

Hey Mark,

I'm not sure if I understand your question correctly, as I understand you would like to configure your Issue Navigator to show up both Ranking and Fixed Version columns. If that's the case, you can do that by configuring your issue navigator to have both columns and then oder by Rank ascending or desc. based on what you require.

Further information on this can be found here:

I hope that was helpful.

0 votes
Mark Bednarski Sep 03, 2013

Hi Ala

I frequently use stored queries and the issue navigator and define my column sets.

Here I'm asking about defining the columns when the issue, the Epic issue ticket is displayed. On the Epic I do see the User Stories below the Epic and for those I need to define the columns.

Hope you have an idea for me.

Thanks
Mark

0 votes
Renjith Pillai Nov 16, 2013

Put this into announcement banner (remember the change the custom field id in the script):

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

AJS.$('#ghx-issues-in-epic-table tr').each(function(){
	console.log('Found epic table');
	var row = this;
	var issueKey = AJS.$(this).attr("data-issuekey");
	AJS.$.getJSON(AJS.contextPath() + '/rest/api/latest/issue/' + issueKey, function(data){
		console.log('Got data for - ' + issueKey);
		var value = data.fields.customfield_10600;
		console.log('Value - ' + value);
		var actions = AJS.$(row).find('td.issue_actions');
		AJS.$(actions).before('<td class="nav">' + value + '</td>');
	});
});

});
</script>

Adam Beckerman Nov 22, 2013

Thanks Renjith, can you please clarify which problem this solves? Looks like it's the last one I mentioned (seeing the Issues in Epic within the QuickView). Can you please confirm?

Renjith Pillai Nov 22, 2013

Yeah, the last one.

Justin Leader Jan 03, 2014

Renjith, great solution. Is there a way to include the Issue Type as a text label for issues in this epic, in this same view in the full-screen view? I figure that the solution at this page (which does work) could be applied to this script somehow?

Renjith Pillai Jan 05, 2014

So instead of "data.fields.customfield_10600", use "data.fields.issuetype.name"

Jan Scherks Jun 05, 2017

Renjith, is it possible to modify the code to sort issues by their priority?

Ghazanfar Feb 26, 2018

Renjith Pillai is your code useful for Jira Cloud as well? 

Djuana Dean Dec 04, 2018

Was this questions answered for Jira cloud?

Andrii.Movchan Feb 06, 2019

Hi Renjith Pillai

Could you help how to add in the "Issues in Epics" list assigned sprint number

0 votes
Adam Beckerman Nov 22, 2013

Thanks Renjith, can you please clarify which problem this solves? Looks like it's the last one I mentioned (seeing the Issues in Epic within the QuickView). Can you please confirm?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

8,313 views 9 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you