Oauth 2 not enabled for this method

Janarthanan Ramesh April 25, 2023

Hello,

I am using a Forge app.

When trying to GET to /rest/api/3/search?jql=project=SLM"

Based on this documentation  https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get

 I get the error "OAuth 2.0 is not enabled for this method"

 

1 answer

0 votes
Himanshi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2023

Hello @Janarthanan Ramesh , 

Welcome to the community!

Can you check from https://developer.atlassian.com/console/myapps/ if you have setup Oauth2.0.

You can read about this more from:https://developer.atlassian.com/cloud/jira/platform/scopes-for-oauth-2-3LO-and-forge-apps/

I am not very familiar with the Forge app,However, to avoid overlooking the syntax error can you try using this endpoint on the with changing the project details from terminal or Postman and check it works:

https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3/search?jql='project={project}

 

As it problem can be with the syntax of the query as well.

Hope the shared information would help.

Janarthanan Ramesh May 3, 2023

Hi @Himanshi ,

Thank you for the response,

I checked up with  https://developer.atlassian.com/console/myapps/ , here cloudId can be generated for the OAuth 2.0 apps only, but in my case I'm using a forge app 

Is there any documentation for OAuth 2.0 in forge app  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events