I want to be able to link sub-tasks to an epic.

Epic link to Subtasks.jpgThis question is in reference to Atlassian Documentation: Managing your projects

Jira's current settings doesn't allow sub-tasks to be linked to an epic. This causes my numbers in the dashboard (Workload pie chart) to be incorrect when summing up hours by epic. Very inconvenient!

Is there a way to change the settings or even develop a script/ plugin to be able to select a epic link to sub-tasks?

I need this ASAP, the success of my project management depends on it.

 

Thank you,

 

Ana Teixeira

2 answers

0 votes

There's two parts to this

  1.  It's absolutely correct that a sub-task should not be assigned to an Epic.  A sub-task belongs to a parent, and hence belong to an Epic via that
  2. It's absolutely a howling bug or flaw in JIRA that sub-tasks do not behave as though they belong to the same Epic as their parent

Yes, a few times I've scripted a field that echoes the actual epic on parent, epic and sub-task.  It works.  I am not sure you can do it on Cloud though.

Hi @Nic Brough [Adaptavist],

could you post the scripted field that shows the epic link from the subtask here?

Regards and thank you

Ricardo da Silva

Got it.

i used a scirpted field with an custom template:

#set ($issueLinkManager = $jirautils.loadComponent('com.atlassian.jira.issue.link.DefaultIssueLinkManager', $issue.getClass()))
#set ($parent = $issue.getParentId())
#foreach ($link in $issueLinkManager.getInwardLinks($parent))
#set($links = $link.getSourceObject().getSummary())
<a class="aui-label ghx-label-7" title="Follow link" href="/browse/$value"> $links </a>
#end
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.link.IssueLinkManager
import com.atlassian.jira.issue.link.IssueLink

def issueLinkManager = ComponentAccessor.getIssueLinkManager()
def parent = issue.getParentId()

for (IssueLink link in issueLinkManager.getInwardLinks(parent)) {

return link.getSourceObject()

}

Thank you, Nic!

It's good to know it's possible to do it at all. Now maybe someone will be able to confirm if it's possible on the cloud.

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

2,782 views 11 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