How to Get EpicID of an IssueID


I was trying to fetch the EpicID of an IssueID.  I used the /rest/agile/1.0 JIRA API to fetch the EpicID as mentioned in this link . However, it throws a 401 Authentication error. But, when i just use the /rest/api/2 JIRA API it does not require any credentials and i am able to fetch the data from the rest api. The api 2 does not have details about an issue's epicId.

If i pass in my credentials to the agile api then i am able to retrieve the epicId for an issue. Is there a way to retrieve the epicId for an issueId without having to pass credentials to an api


1 answer

Hello, authentification is needed to acces information in JIRA

JIRA's REST API is protected by the same restrictions which are provided via JIRAs standard web interface. This means that if you do not log in, you are accessing JIRA anonymously. Furthermore, if you log in and do not have permission to view something in JIRA, you will not be able to view it using the JIRA REST API either.


Thanks for the quick response. I am unable to access the agile/1.0 API. However, i am able to access api/2 without authenticating.

I could get the Epic Link using the Jira Client using the AnonymousAuthenticationHandler. I was thinking if there is a  way to do it using the API?

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

64 views 1 4
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
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