• Community
  • Products
  • Jira
  • Questions
  • JIRA issue navigator cannot show parents of issues but it is able to show sub-tasks. An oversight or my misunderstanding?

JIRA issue navigator cannot show parents of issues but it is able to show sub-tasks. An oversight or my misunderstanding?

In issue navigator, I can select 'sub-tasks' as a column to see a list of sub-tasks that belong to an issue. However, the opposite is not true. There is no 'parent' column that can be selected to show the parent of the sub-tasks. It seems strange that one has been done without the other.

3 answers

1 accepted

3 votes
Renjith Pillai Community Champion Jul 06, 2013

Code for scripted field for Script runner

importcom.atlassian.jira.ComponentManager;

defburl = ComponentManager.getInstance().getApplicationProperties().getString("jira.baseurl")

return (issue.parent != null) ? "<a href=\""+ burl + "/browse/"+ issue.parentObject.key + "\">"+ issue.parentObject.key + "</a>" : "";

For experienced scripting admins it's obvious but beginners might overlook the missing spaces typo on the first two lines: import com... def burl... However, thanks for the answer, this helped me a lot.

And for unexperienced, what is the template to be used?

1 votes

In the case of subtasks, you can see the parent key in the summary column. Even the summary of the parent is shown if you hover over on the key.

In JIRA6, detail view makes it even better.

Just a different implementation!

Sorry Jobin but this is not what I am talking about. if I do a search, it is so that I can find the parents of a set of sub-tasks. For example, if using GreenHopper, I have user stories and they have work items defined as sub-tasks. In issue navigator, I want to do a search for some sub-tasks in sprint x and I want to see, IN THE SEARCH RESULTS, what the parents of those sub-tasks are, i.e. the stories to which they belong. This is not possible as there is no appropriate column to select for search results. You are right - there are many ways that I can find out the parent of a sub-task. That's not what I want to do. I want to be able to list a filtered set of sub-tasks and see the parents of all of them at once. That way, I can output as report or use the filter in a gadget on a dashboard.

You will have to capture the parent field in calculated custom field. You can write your own calculated fields or use the scripted fields from plugins like Scriptrunner.

do you have any examples of writing your own calculated fields, espessially in onDemand jira?

<RANT> This is clearly an oversight or handicaped by design. In excel, you need the parent id column to work with the data effectively. Excel cannot use comma separated list of child references in a column, such as the "subtasks" column. Either this is done on purpose or a sloppy implementation coming out of a lack of understanding of how excel works, in other words an incompetent implementation. Yet another jira "feature" that needs scripts and workarounds... GAH! Why did we choose jira a month ago, do we do a rollback of all this work and all of these workarounds... </RANT>

Including a parent reference in the dataset has been rejected by atlassian, this is the "new feature":

https://jira.atlassian.com/browse/JRA-21555

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 ...

3,001 views 12 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