Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Oauth 2 not enabled for this method

Edited

I'm trying to access this endpoint but getting back the below error. Can you confirm if this should be blocked and what can be used instead to get a list of Epics in a project.

**API Call

https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3/project = {project} AND issuetype = Epic AND status in ("In Progress", "In Review", "To Do") 
**ERROR
//"OAuth 2.0 is not enabled for method: GET /rest/api/3/project%20=%20{project}%20AND%20issuetype%20=%20Epic%20AND%20status%20in%20("In%20Progress",%20"In%20Review",%20"To%20Do")"

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer Atlassian Team Dec 28, 2021

Hi Ollie,

I can see you are getting an error for this call, but the syntax of the call does not make sense to me.  I believe this is why you are getting back that error here.

Which endpoint are you trying to call here?  From the call it seems like this might be the GET /rest/api/3/project/{projectIdOrKey}  however the call is not correct for that.  Since it looks like you are trying to pass a JQL search here, perhaps instead you are trying to do a search instead. 

If that is the case, then you need to call the endpoint of GET /rest/api/3/search. And if that is the endpoint you want here, you need to adjust the call so it looks more like this:

https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3/search?jql='project={project} AND issuetype = Epic AND status in ("In Progress", "In Review", "To Do")' 

I hope that helps.

Andy

Hi Andy, 

 

Thanks for the reply. Using the search endpoint worked as you suggested!

 

Many thanks

Ollie

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

815 views 24 28
Read article

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