I want to create cross-project releases using Jira REST API.
I've tried a PUT and a PATCH request to rest/api/3/plans/plan/{planId} and I got 415 and 400 responses.
I've tried the following payloads:
PUT
{
"releases"/"crossProjectReleases": [{
"name": "2.99.0"
}]
}
PATCH
Solved! Go to Solution.
I updated the Planlead and permissions via the web API.
The request body used the PATCH format like this:
[
{"op":"replace", "path":"/leadAccountId", "value": "xxx"}
]
The method was PUT, and the header included Accept: application/json-patch+json.
From your example, it seems the value might not be correctly specified.
Based on the output from a GET method,
it looks like the releaseIds is required.
Here's an example of how it should look:
[
{
"op": "add",
"path": "/crossProjectReleases/-",
"value": {
"name": "x-plr",
"releaseIds": [345]
}
}
]