Advanced search work items
POST/api/v1/workspaces/{workspace_slug}/work-items/advanced-search/
Search for work items with a text query and advanced filters.
Path parameters
workspace_slug:requiredstringThe workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.
Body parameters
query:optionalstringText to search for across work item fields.
filters:optionalobjectFilters as JSON. Plane passes them to IssueFilterSet, which validates and applies them.
limit:optionalintegerMaximum number of results to return.
workspace_search:optionalbooleanWhether to search across all projects in the workspace.
project_id:optionalstringProject ID to limit results to one project.
Scopes
API key authentication or an OAuth token with equivalent access.
Advanced search work items
bash
curl -X POST \
"https://api.plane.so/api/v1/workspaces/my-workspace/work-items/advanced-search/" \
-H "X-API-Key: $PLANE_API_KEY" \
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "login",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"limit": 10
}'python
import requests
response = requests.post(
"https://api.plane.so/api/v1/workspaces/my-workspace/work-items/advanced-search/",
headers={"X-API-Key": "your-api-key"},
json={
"query": "login",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"limit": 10
}
)
print(response.json())javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/work-items/advanced-search/",
{
method: "POST",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
query: "login",
project_id: "550e8400-e29b-41d4-a716-446655440000",
limit: 10,
}),
},
);
const data = await response.json();Response200
json
[
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Example Name",
"sequence_id": 102,
"project_identifier": "WEB",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"workspace_id": "550e8400-e29b-41d4-a716-446655440000",
"type_id": "550e8400-e29b-41d4-a716-446655440000",
"state_id": "550e8400-e29b-41d4-a716-446655440000",
"priority": "high",
"target_date": "2024-01-01",
"start_date": "2024-01-01"
},
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Example Name",
"sequence_id": 245,
"project_identifier": "API",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"workspace_id": "550e8400-e29b-41d4-a716-446655440000",
"type_id": "550e8400-e29b-41d4-a716-446655440000",
"state_id": "550e8400-e29b-41d4-a716-446655440000",
"priority": "medium",
"target_date": null,
"start_date": "2024-01-01"
}
]
]
