Add work items to cycle
POST/api/v1/workspaces/{slug}/projects/{project_id}/cycles/{cycle_id}/cycle-issues/
Assign multiple work items to a cycle. Automatically handles bulk creation and updates with activity tracking.
Path Parameters
cycle_id:requiredstringCycle id.
project_id:requiredstringProject ID
slug:requiredstringWorkspace slug
Body Parameters
issues:requiredarrayList of issue IDs to add to the cycle
Scopes
projects.cycles:write
Add work items to cycle
bash
curl -X POST \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/cycles/550e8400-e29b-41d4-a716-446655440001/cycle-issues/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"issues": [
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440000"
]
}'python
import requests
response = requests.post(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/cycles/550e8400-e29b-41d4-a716-446655440001/cycle-issues/",
headers={"X-API-Key": "your-api-key"},
json={
"issues": [
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440000"
]
}
)
print(response.json())javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/cycles/550e8400-e29b-41d4-a716-446655440001/cycle-issues/",
{
method: "POST",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
issues: ["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440000"],
}),
}
);
const data = await response.json();Response200
json
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"cycle": "550e8400-e29b-41d4-a716-446655440000",
"issue": "550e8400-e29b-41d4-a716-446655440000",
"sub_issues_count": 3,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
