Forums

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

Create Project over REST API

Stefan Wienströer May 19, 2022 edited

Currently, we use the following SDK to create projects via the Jira API:

https://github.com/lesstif/php-jira-rest-client

The API currently works via a personal access token. We would like to make our integration available to other Jira users in the near future and have created a Forge app for this purpose. We have not yet found a way to also use authentication via the Forge app via the Laravel SDK.

Therefore, we are currently trying to switch the requests via the WebTrigger interface to the Forge app.

However, when creating a project, we still get the following error:

{"errorMessages":["OAuth 2.0 is not enabled for method: POST /project"]}

Call with Forge:
let result = await api
.asApp()
.requestJira(route`${req.queryParameters.path}`,{method: req.method, body: req.body});

What is the best way to solve this?
- Is it also possible to create new projects via Forge?
- Or can the authentication be changed so that access via the Laravel SDK works?

 

1 answer

1 accepted

0 votes
Answer accepted
Stefan Wienströer May 21, 2022

The solution was to add /rest/api/3/ to the url.

Suggest an answer

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

Atlassian Community Events