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?
The solution was to add /rest/api/3/ to the url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.