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

Get Epic for sub task


I am using "Get Issue" API:, to get details of a "sub task".

But I want to fetch "Epic" of the Parent task, in the same API.

How can I get it?

2 answers

0 votes

I'm not sure if this is the only way, but you could query the same endpoint using the fields.parent.key value from the first call.  The response would be the sub-task's parent details.  From there you would get the Epic key by looking at the fields.customfield_10008 value.

If you can get make a call to the ParentEpic field, that should pull in the Epic for the Parent Task. 

Yeah that might work. But I don't want to make an extra call to get Epic.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

85 views 1 5
Join discussion

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