The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Oauth 2 not enabled for this method

Ollie Robins
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 24, 2021

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Andy Heinzer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 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

Ollie Robins
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 29, 2021

Hi Andy, 

 

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

 

Many thanks

Ollie

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events