curl --location --request POST '/rest/api/3/plans/plan' \
--header 'Content-Type: application/json' \
--data-raw '{
"crossProjectReleases": [
{
"name": "AB and BC merge",
"releaseIds": [
29,
39
]
}
],
"customFields": [
{
"customFieldId": 2335,
"filter": true
}
],
"exclusionRules": {
"issueIds": [
2,
3
],
"issueTypeIds": [
32,
33
],
"numberOfDaysToShowCompletedIssues": 50,
"releaseIds": [
42,
43
],
"workStatusCategoryIds": [
22,
23
],
"workStatusIds": [
12,
13
]
},
"issueSources": [
{
"type": "Project",
"value": 12
},
{
"type": "Board",
"value": 462
}
],
"leadAccountId": "abc-12-rbji",
"name": "ABC Quaterly plan",
"permissions": [
{
"holder": {
"type": "AccountId",
"value": "234-tgj-343"
},
"type": "Edit"
}
],
"scheduling": {
"dependencies": "Sequential",
"endDate": {
"type": "DueDate"
},
"estimation": "Days",
"inferredDates": "ReleaseDates",
"startDate": {
"type": "TargetStartDate"
}
}
}'