-
Suggestion
-
Resolution: Unresolved
-
None
-
1
-
1
-
Problem Definition
The REST API endpoint to delete Portfolio plans is present but not implemented.
When you try to delete a plan via REST, you get the following:
$ curl -XDELETE -s -u username:password http://localhost:47133/j7133/rest/jpo-api/1.0/plan/5 | jq . { "error": "unexpected-error", "errorMessages": [], "exception": { "type": "com.atlassian.rm.common.publicapi.exception.APIErrorCode$Exception", "message": "Delete operation not available!", "stackTrace": [ ...
Suggested Solution
Implement the DELETE method so plans can be deleted via the REST API endpoint.
Workaround
Delete plans from the GUI.
- links to
[JSWSERVER-25277] Implement the REST API endpoint to delete plans
Labels | Original: API | New: API ril |
Labels | Original: API ril | New: API |
Support reference count | New: 1 |
Labels | Original: API | New: API ril |
Remote Link | New: This issue links to "Internal ticket (Web Link)" [ 979766 ] |
UIS | Original: 0 | New: 1 |
UIS | Original: 1 | New: 0 |
UIS | Original: 0 | New: 1 |
Component/s | Original: Plan [ 48691 ] | |
Component/s | Original: API [ 52790 ] | |
Component/s | New: (Advanced Roadmaps) API / Documentation [ 73718 ] | |
Component/s | New: (Advanced Roadmaps) API / Documentation [ 73718 ] | |
Key | Original: JPOSERVER-2674 | New: JSWSERVER-25277 |
Project | Original: Advanced Roadmaps [ 16510 ] | New: Jira Software Server and Data Center [ 12200 ] |
We also recently stumbled upon a similar problem, with programs instead of plans.
This is either a Bug in the REST-Backend or invalid API-Docs.
However I looked into the browser traffic and found that the frontend actually uses a different API.
Instead of /jpo-api/ it uses /jpo/ (without -api), so for example to delete programs (respectively plans):
DELETE /rest/jpo/1.0/programs/<id>
I couldn't find any API-Docs for this /jpo/ API though..