# Find Tasks — Wrike

> Query tasks within a Wrike folder or project via GET /folders/{folderId}/tasks, with optional status, due-date, importance, and assignee filters. Answers questions like 'what's overdue in the Marketing project?'. Use List Folder ID Options…

- Key: `wrike-find-tasks`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Wrike (`wrike`) — https://pipedream.com/apps/wrike.md
- This page (HTML): https://pipedream.com/apps/wrike/actions/find-tasks
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/wrike/actions/find-tasks/find-tasks.mjs

## Description

Query tasks within a Wrike folder or project via GET /folders/{folderId}/tasks, with optional status, due-date, importance, and assignee filters. Answers questions like 'what's overdue in the Marketing project?'. Use **List Folder ID Options** to obtain a folderId. Use the returned task IDs with **Get Task** or **Update Task**. [See the documentation](https://developers.wrike.com/reference/getfolderssingletasks)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `folderId` | `string` | Yes | The ID of the folder or project whose tasks to query, e.g. IEAASDF3. Run the List Folder ID Options action to look up folder IDs. |
| `status` | `string[]` | No | Filter by task status. One or more of: Active, Deferred, Completed, Cancelled. |
| `importance` | `string` | No | Filter by task importance. One of: High, Normal, Low. |
| `dueDateGt` | `string` | No | Return tasks due on or after this date (maps to dueDate.start). Format yyyy-MM-dd, e.g. 2026-07-01. |
| `dueDateLt` | `string` | No | Return tasks due on or before this date (maps to dueDate.end). Format yyyy-MM-dd, e.g. 2026-08-01. |
| `responsibles` | `string[]` | No | Filter by assignee contact IDs, e.g. KUABCDEF. Run the List Contact ID Options action to look up contact IDs. |
| `limit` | `integer` | No | Maximum number of tasks to return. Min 1, max 1000. Defaults to 100. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "wrike",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "wrike-find-tasks",
  arguments: {
    folderId: "Folder ID",
    status: ["Status"],
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "wrike-find-tasks",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    wrike: { authProvisionId: "apn_xxxxxxx" },
    folderId: "Folder ID",
    status: ["Status"],
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "wrike-find-tasks",
    "configured_props": {
      "wrike": { "authProvisionId": "apn_xxxxxxx" },
      "folderId": "Folder ID",
      "status": ["Status"]
    }
  }'
```

---

- App: https://pipedream.com/apps/wrike.md · All apps: https://pipedream.com/apps
