# Create Issue — Taiga

> Create a new issue in a Taiga project. See the documentation

- Key: `taiga-create-issue`
- Type: Action (Write)
- Version: 0.0.2
- App: Taiga (`taiga`) — https://pipedream.com/apps/taiga.md
- This page (HTML): https://pipedream.com/apps/taiga/actions/create-issue
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/taiga/actions/create-issue/create-issue.mjs

## Description

Create a new issue in a Taiga project. [See the documentation](https://docs.taiga.io/api.html#issues-create)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `projectId` | `string` | Yes | Select a project or provide a project ID Options are loaded from the connected account. |
| `subject` | `string` | Yes | The issue subject/title |
| `description` | `string` | No | The issue description |
| `priority` | `string` | No | Select a priority or provide a priority Options are loaded from the connected account. |
| `severity` | `string` | No | Select a severity or provide a severity Options are loaded from the connected account. |
| `status` | `string` | No | Select a status or provide a status Options are loaded from the connected account. |
| `type` | `string` | No | Select a type or provide a type Options are loaded from the connected account. |
| `assignedTo` | `string` | No | User to assign the issue to Options are loaded from the connected account. |
| `milestone` | `string` | No | Select a milestone or provide a milestone Options are loaded from the connected account. |
| `tags` | `string[]` | No | Tags to associate with the issue |
| `blockedNote` | `string` | No | The reason why the issue is blocked |
| `isBlocked` | `boolean` | No | Whether the issue is blocked |
| `watchers` | `string[]` | No | Users to watch the issue Options are loaded from the connected account. |

## 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": "taiga",
      },
    },
  },
)

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: "taiga-create-issue",
  arguments: {
    projectId: "Project ID",
    subject: "Subject",
  },
})
```

**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: "taiga-create-issue",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    taiga: { authProvisionId: "apn_xxxxxxx" },
    projectId: "Project ID",
    subject: "Subject",
  },
})

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": "taiga-create-issue",
    "configured_props": {
      "taiga": { "authProvisionId": "apn_xxxxxxx" },
      "projectId": "Project ID",
      "subject": "Subject"
    }
  }'
```

---

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