I am accessing Story issue using REST API but getting response as 

"{"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}"

I have tried with different permissions for user "admin" but still getting the same error.

Can you please suggest?

Base URL - https://mylearning.atlassian.net

REST API URL = https://mylearning.atlassian.net/rest/api/2/issue/Story

 

 

2 answers

This widget could not be displayed.

Hi Raghavendra,

I took a look at your query and you may want to try adding the actual key to the end. I have a story with the key TES-2. To get a valid response I would need to run the following:

curl -D- -u "myUN:myPW" -X GET -H "Content-Type: application/json" https://myInstance.atlassian.net/rest/api/2/issue/TES-2

Try adding the actual issue key to the end where it says Story and see if you get different results. Additionally, if you want to get all the issues of type Story you can try the following:

curl -D- -u "myUN:myPW" -X GET -H "Content-Type: application/json" https://myInstance.atlassian.net/rest/api/2/search?jql=issuetype=Story

I hope this helps!

Branden

This widget could not be displayed.
Alex Christensen Community Champion May 23, 2017

What are you inputting as the Story key in the URL? Are you actually putting in the word "Story" or some issue key, like ABC-123?

You should be using an issue key. Here's an example with ABC-123 as the issue key:

https://mylearning.atlassian.net/rest/api/2/issue/ABC-123

Other than that, make sure you have the Browse Project permission for the project you're trying to access. 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

579 views 25 15
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