---
title: "Create a Jira issue from a comment thread"
description: "Creates the issue as you from the reviewed fields and links the thread to it."
canonical_url: https://docs.markdrop.in/api/jira/create-a-jira-issue-from-a-comment-thread
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Create a Jira issue from a comment thread

`POST https://api.markdrop.in/api/v1/jira/pages/{slug}/threads/{thread_id}/issue`

Creates the issue as you from the reviewed `fields` and links the thread to it. The issue's description links back to the thread.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 30 per minute per IP address.
- **MCP tool:** `thread_to_jira` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [Jira in pages](https://docs.markdrop.in/collaboration/jira-in-pages)

## Path parameters

- `slug` (string, required): The document's address: the part after `markdrop.in/`.
- `thread_id` (string, required)

## Headers

- `X-Read-Password` (string): The password of a password-protected document.
- `X-Markdrop-Workspace` (string): A workspace's id: answer only if the document is in that workspace, else `404`. Workspace domains send it; you rarely need it.

## Request body

`application/json`, required.

- `fields` (object, required)
  - `project` (string, required): 1–20 characters.
  - `issue_type` (string): Up to 60 characters.
  - `summary` (string, required): 1–400 characters.
  - `description` (string): Up to 8,000 characters. Default `""`.
  - `priority` (string): Up to 40 characters.
  - `assignee_user_id` (string): Matches `^[0-9a-f]{24}$`.
  - `assignee_account_id` (string): Up to 128 characters.
  - `due` (string): Up to 10 characters.
  - `labels` (array of string): Up to 10 items.

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X POST https://api.markdrop.in/api/v1/jira/pages/k3x9q2m/threads/THREAD_ID/issue \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fields":{}}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/jira/pages/k3x9q2m/threads/THREAD_ID/issue", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "fields": {}
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/jira/pages/k3x9q2m/threads/THREAD_ID/issue",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"fields": {}},
)
r.raise_for_status()
print(r.json())
```
