• 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
Accepted answer

Code for scripted field for Script runner


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 vote

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?

This makes searching for subtasks that are repeated for most stories (Create Unit Test for example) pretty much useless.  A Subtask has no real context unless the parent issue is included in the search results. This is a defect.



<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":


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,508 views 15 20
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