Why can't subtasks have an Epic

Yair Spolter March 2, 2017

I have a board that shows me all issues that belong to a particular epic, however subtasks don't appear. I need the subtasks to appear as well.

8 answers

2 votes
Tajinder Gill January 18, 2018

You can do:

parentEpic = My-EPIC-ID

This is built into Jira.

Kit Hygh May 9, 2018

I have been trying this, but nothing beyond the Mastertasks on the Epic come up. No Tasks on the Mastertasks, nor Bugs written linked to the Mastertasks nor Tasks. Is there a trick to using this or a configuration that I would need to do?

Prashant Deshmukh September 11, 2018

This worked for me.  

I was using EpicLink = My-EPIC-ID which did not work as it was looking for only directly linked items

Morgan Faer January 25, 2019

Which field on my sub-task should this query be added to so that it pulls information from its parent ticket? 

Like # people like this
Kate M April 14, 2020

This was quite helpful!

Matthew Vincent September 22, 2020

This totally worked for me, too. Thank you!

Anais Liu May 13, 2021

could you please brief a little more on how can we work it out? thank you. where should i put 

parentEpic = My-EPIC-ID

thank you. 

Jose Guerrero Cibrian July 16, 2021

Would you mind sharing the full JQL query?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 16, 2021

The answer is the full JQL, everything else that might be in Tajinder's query is irrelevant to you, it's looking at other things.

Jose Guerrero Cibrian July 16, 2021

I found what I was typing wrong.

Thanks

Murilo da Costa August 25, 2023

Jira says parentEpic does not exists. :(

1 vote
Maria Oat May 28, 2019

Hi Guys, 

You can vote on this issue "A subtask cannot be assigned to an epic" https://jira.atlassian.com/browse/JSWSERVER-15705

Tks, 

Fabio

1 vote
mike March 28, 2019

Just now discovered.  Note: running Jira Server 6.2 (I know, old)

tl;dr Create task as regular, non-sub-task level, then do "convert to subtask". Epic Link will remain populated.

I have tasks/stories with subtasks and just noticed some of those subtasks do have the "Epic Link" field populated, and so show in filters for "Epic Link = ....", which is very nice.

Looking at their history it's because they were created as regular issues, then moved to be subtasks, or "convert to subtask".

So, not great, but a workaround to populate the "Epic Link" field for use in filters and the like.

---

Edit: unfortunately this doesn't work.  Just did it but the Epic Link field did not remain populated.  Other sub-tasks do still have it populated but I have no idea why.  It may be the field is available on a bulk transition out of the initial creation state, in our case from "Submitted" -> "Assigned", and that transition opens basically an edit issue dialog.  But this is only a guess and I have no good way to test right now.  Sorry for false hope. :(

Yair Spolter March 28, 2019

Nice hack! I will try it - thanks!!

Yair Spolter April 3, 2019

Yeah, not working for me either, but I appreciate you reaching out and trying to help. Too bad Atlassian doesn't change this. :-(

1 vote
Anudeep Gade February 15, 2019

I had a similar issue for my filters where sub-tasks doesn't appear.

I had to workaround by linking manually the sub-task to the Epic  by any link type like "is part of" or "relates to".  Then adapt the filter to display the issues which are linked to Epic.

Like this 

  issue in linkedIssues( epicIssue )

Then we can see sub tasks

But I also prefer if Atlassian can automatically inherit the epic link for sub-task from its parent. 

1 vote
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2017

Hi Yair,

this question was discussed in detail the last time here: https://answers.atlassian.com/questions/35769410

Regards,

Thomas

 

Yair Spolter March 2, 2017

Thanks for the quick reply Thomas.

I looked through that thread, and what I understood from it is that Atlassian decided that it's not appropriate/important to include sub-tasks on my Kanban board (and therefore you can't assign epics to subtasks - and they don't even inherit the parent's epic). Is that correct?

I'm not sure I am applying what I read there correctly to my question, so if you could please confirm...

If that is the response, I have some trouble understanding why the tool would want to force me to work in a way that I don't find useful for my personal workflow.

Like Sara Mattis likes this
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 3, 2017

That is correct - subtasks are useless in Scrum planning and just waste space and make noise.

A subtask always belongs to its parent, and that parent can have an Epic, which then implies that the sub-task is inside that Epic.  But there's an oversight in that the subtasks don't actually inherit the information internally.

There are open issues which Atlassian have accepted to get this design flaw fixed. 

Like # people like this
Yair Spolter March 4, 2017

Thanks Nic. My main issue is that the subtask does not inherit the epic from the parent. So if that is being fixed, it will remedy the situation for me. Any idea on estimated time frame when we can expect this to be resolved? Are we talking days? Weeks? Months? More?

Like # people like this
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2017

Sadly an "if" in the Atlassian ecosystem is "as long as a piece of string".  It took over a decade to get JRA-9 dealt with, and we still don't have "priority schemes", but other things that are just as useful have taken only a couple of weeks to get done.  I can't speak for when or even if, on Atlassian's behalf, just say "they've not said 'no'".

 

Like Daniel Soares likes this
Yair Spolter March 4, 2017

OK thanks for the clarification and the quick response Nic.

In that case, any ideas for a quick work-around in the remaining 10 years until this is addressed?

Again, the situation is that I have a "Board" ("Rapidboard"?) that is defined by a specific query. One of the things that the query looks for is Issues that have 1 of 2 specific Epic Links. Since subtasks are not assigned an Epic Link, there are often subtasks that should be on my board but they are not. (And since the parent of such subtasks are not necessarily within the query due to having a different status or assignee than the subtask, I don't see them either - they are not meant to show up.)

So how do I keep these subtasks on my radar (include them on my board)?

Like Andreas Lianos likes this
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2017

I don't think you can, although there is a big problem with one of your assumptions - a subtask is part of its parent, so even if you could do "show epic and all its issues", then your subtasks should be on there only if their parent issue is.  If their parent is not in the Epic, then neither are they.

Like nokite likes this
Yair Spolter March 4, 2017

Thanks Nic.

Maybe I didn't explain myself well. I do want the subtask to inherit the epic from its parent.

What I am unable to do now is the following:

Let's say that parent issue 'A' has an epic called 'monetization'.

'A' has a subtask called 'A1'.

A is in status 'Open', and 'A1' is in status 'Resolved'.

On my Kanban board I am filtering for all issues in the Epic 'monetization' that have the status 'Resolved'. I would like 'A1' to show up on this board - how can I do that?

Ananthu March 4, 2017

@yair: You can configure your kanban board at ease to list issues with subtasks. Clicking on configure at top right corner of your board's dropdown, you could find columns tab where you have a field called "column constraints", where you can select issue count with or without subtasks. 

Note: You should be an board administrator to configure columns.

Hope it meets your requirement :)

Yair Spolter March 4, 2017

Thank you Avanthu, however this is not going to fix the problem that I have. In my case (explained above) the parent issue does not match the filter for my board, so the parent issue is not going to show up on my board, so neither will the subtask. The only way that the subtask would appear on my board is if the subtask itself matches my query, and since subtasks cannot have Epics, it will not.

Fernanda Tavares December 8, 2017

Thanks, Nic. Can you post the ticket number for what you mentioned:

"There are open issues which Atlassian have accepted to get this design flaw fixed."

This problem is a big pain for us, and we'd like to be able to vote for the issue and watch its progress.

Joshua McManus October 18, 2018

I have worked around this by fundamentally changing how I build my board queries. I have created a custom field called "Assigned Team" that is the flag for including issues in a scrum board. If you have purchased Atlassian Portfolio then you could just use the Team function.

Once that is set up, I have a "Copy value from other field" post-function on my Create transition for all sub-tasks that take the "Assigned Team" value from the parent and set it for the newly created subtask. This ensures that all subtasks created for a story in a team's backlog/sprint show up in the Active Sprint board.

One pain point for me, is that because subtasks cannot have Epic Links, when you "Convert Issue" of a subtask to be an independent issue, it doesn't inherit the Epic Link of it's parent and hence you might lose issues that would otherwise be able to the tracked to the Epic.

0 votes
Deleted user November 1, 2019

I agree - it makes issue reporting completely useless if you use subtasks as you can't link them to the epic. 

0 votes
Joel July 31, 2018

We don't either. seems every time i turn around their pointing to our wallets... buy an add-on. This is getting frustrating.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2017

There is a workaround I've used on Server editions of JIRA, and I think you can get close to it on Cloud. 

With the Script Runner add-on, create a scripted field, or populate a text field, that is a copy of the epic name that should be there on the sub-tasks.  It will need to echo the name for parent-level issues and the epic itself, so it's horribly redundant, but at least you'll be able to do a sane search.

Yair Spolter March 6, 2017

Thanks Nic, but we don't have the add-on.

Suggest an answer

Log in or Sign up to answer