---
title: "Jira Security Finding Drafts From an LLM"
description: "Turn confirmed, redacted pentest findings into local Jira ticket drafts with a model: map fields in code, key duplicates, and let a person file each ticket."
canonical: https://pentestllm.ai/jira-security-finding-drafts
generated: 2026-11-27T06:35:44.801Z
source: https://pentestllm.ai/jira-security-finding-drafts
base_url: https://api.pentestllm.ai/v1
---

Jira drafts from findings

# Drafting Jira tickets from findings

Give `minimax-m3.1-flash-cybersecurity` at https://api.pentestllm.ai/v1 redacted findings that analysts have confirmed in an authorized engagement, plus your approved Jira field template, and get back local ticket drafts that point at their evidence. The model reads and returns text, holds no Jira credentials and cannot create or change an issue, so a person confirms each finding and files each ticket through the normal ticketing workflow.

[Prices per token](https://pentestllm.ai/pricing)

[Get a key](https://app.pentestllm.ai/console) [Try it free in the browser](https://pentestllm.ai/playground)

```
from openai import OpenAI

client = OpenAI(base_url="https://api.pentestllm.ai/v1", api_key="sk-ptl-live-…")

reply = client.chat.completions.create(
    model="auto/security",
    messages=[{"role": "user", "content": "Explain this advisory and list what to check on an affected host."}],
)
print(reply.model)  # the build that answered
print(reply.choices[0].message.content)
```

## What this does and does not touch

The engagement is over its analysis phase and the findings list exists. Each record has an id, a title, an analyst-set severity, a description, the affected component and references to the evidence in the work papers. The job here is the handoff: turning those records into ticket text that matches how a client's project is configured. Nothing on this page calls a Jira endpoint. A script writes preview files to disk, and the person who owns the project reads them and files what they accept.

Prioritizing and ordering findings is a different job, covered on the [vulnerability triage page](https://pentestllm.ai/ai-vulnerability-triage). Writing the fix itself is covered on the [remediation writing page](https://pentestllm.ai/pentest-remediation-writing). This page starts after both and stops at the draft.

## Field mapping is a template, not a guess

Every Jira project has its own required fields, issue types and custom fields, and the ids of custom fields differ between sites. Atlassian documents the REST resources that list the fields a project requires for an issue type, and the document format that rich-text fields use, a JSON tree with a doc node, a version and nested content nodes. Read those pages for your own site and write the mapping into a template your team approves: finding id to a label, analyst severity to a priority name, description to the description field, evidence references to a plain list. Do not ask the model to infer a field id, and do not assume that a custom field you saw on one project exists on another.

## Let the model write only the prose

Split each draft into fields that code fills and fields that the model writes. Code fills the finding id, the severity, the component and the evidence references straight from the record. The model writes the summary line and a short description from the finding's own text, in the tone a developer reads without a security background. Ask for a `json_schema` reply with exactly those two properties for each finding id; the live catalog shows `response_format` as a supported parameter for `minimax-m3.1-flash-cybersecurity`. Tell the model that findings are confirmed by a person, that severity is given and not to be changed, and that no assignee, due date or ticket number may be invented.

```
import hashlib, json

def dup_key(f):
    identity = [f["engagement_id"], f["component"], f["weakness"], f["location"]]
    if any(not isinstance(value, str) or not value for value in identity):
        raise ValueError("missing duplicate-key field")
    raw = json.dumps(identity, ensure_ascii=False, separators=(",", ":"))
    return hashlib.sha256(raw.encode()).hexdigest()

def draft(f, prose, template):
    return {
        "key": dup_key(f),
        "finding": f["id"],
        "fields": {
            "summary": prose["summary"],
            "priority": template["priority_map"][f["severity"]],
            "labels": [f["id"], "sec-" + dup_key(f)],
            "evidence": f["evidence_refs"],
        },
        "description": prose["description"],
    }

# findings, prose and template are approved local inputs to this assembly step.
ids = [f["id"] for f in findings]
if len(set(ids)) != len(ids) or set(prose) != set(ids):
    raise ValueError("duplicate, missing or extra finding ID")
for value in prose.values():
    if set(value) != {"summary", "description"}:
        raise ValueError("unexpected prose fields")
    if any(not isinstance(value[k], str) or not 1 <= len(value[k]) <= limit
           for k, limit in [("summary", 240), ("description", 4000)]):
        raise ValueError("invalid prose field")
drafts = [draft(f, prose[f["id"]], template) for f in findings]
with open("ticket-drafts.json", "w") as output:
    json.dump(drafts, output, indent=2)
```

## Validate before anything is previewed

Check the reply in code. Every finding id you sent returns exactly once, no id appears that you did not send, the summary fits the field's length, and the description contains no assignee, date or link that the record did not already hold. Escape the description for the format it will be pasted into, because finding text can contain characters that a rich-text field treats as markup. Send the findings with the client's identifiers replaced by placeholders, as set out on the [files and redaction page](https://pentestllm.ai/features/files-and-redaction), and keep your own map to restore them in the draft. The [rules of engagement](https://pentestllm.ai/tools/rules-of-engagement) say which assets may appear in a ticket at all.

The reply's `usage.cost` is the price of the call, with per-token rates on the [pricing page](https://pentestllm.ai/pricing).

## Duplicate keys come from the record

A model should not decide whether two findings are the same issue. Compute a key from the engagement ID, component, weakness and exact location, encode the fields as a JSON array, hash it, and store it as a label on the ticket. Preserve case in paths and values: lowercasing them or joining with a separator can merge distinct findings. Before a person files a draft, search the project for that label; a hit means update or link the existing issue rather than open a second one. The key survives a retest because it comes from the finding and not from the wording of the draft.

## Two lists: confirmed findings and ticket drafts

Keep confirmed findings, with their analyst severity and evidence, as the source of truth, and treat each draft as a view of one of them. A draft carries no authority: the analyst who confirmed the finding checks that the text still says what the evidence shows, and the project owner decides whether the ticket is filed, with which assignee and by which date. If the client later changes a severity in the tracker, the findings list is updated by the analyst, not by editing the draft.

## 16 security builds, priced per token

USD per million tokens, live on 2026-11-27; `auto/security` bills at the build that answers.

Detected refusals and invalid non-streamed JSON qualify for automatic refunds within the daily cap. [Verify your receipt](https://pentestllm.ai/statements/verify).

| Model | Build | Input $/M | Output $/M | Context | Wire formats |
| --- | --- | --- | --- | --- | --- |
| [Qwen3.8 27B Cybersecurity](https://pentestllm.ai/models/qwen3.8-27b-cybersecurity) qwen3.8-27b-cybersecurity | Security | $0.40 | $2.40 | 262K | openai |
| [Uncensored Qwen3.8 27b Cybersecurity](https://pentestllm.ai/models/qwen3.8-27b-cybersecurity-uncensored) qwen3.8-27b-cybersecurity-uncensored | Security | $0.40 | $2.40 | 262K | openai |
| [Gemma 4 26B A4B Cybersecurity](https://pentestllm.ai/models/gemma-4-26b-a4b-it-cybersecurity) gemma-4-26b-a4b-it-cybersecurity | Security | $0.4224 | $1.3376 | 262K | openai |
| [Gemma 4 26B A4B Cybersecurity (Uncensored)](https://pentestllm.ai/models/gemma-4-26b-a4b-it-cybersecurity-uncensored) gemma-4-26b-a4b-it-cybersecurity-uncensored | Security | $0.48 | $1.52 | 262K | openai |
| [GLM-5.3 Flash Cybersecurity](https://pentestllm.ai/models/glm-5.3-flash-cybersecurity) glm-5.3-flash-cybersecurity | Security | $0.4935 | $1.645 | 1049K | openai |
| [GLM-5.3 Flash Cybersecurity (Uncensored)](https://pentestllm.ai/models/glm-5.3-flash-cybersecurity-uncensored) glm-5.3-flash-cybersecurity-uncensored | Security | $0.5093 | $1.6975 | 1049K | openai |
| [Red Team (Flash)](https://pentestllm.ai/models/uplink-red-team-flash) uplink-red-team-flash | Security | $0.90 | $3.00 | 1000K | openai |
| [Red Team (Pro)](https://pentestllm.ai/models/uplink-red-team-pro) uplink-red-team-pro | Security | $1.50 | $6.00 | – | openai |
| [OrcaCyber MiniMax M3.1 Flash](https://pentestllm.ai/models/minimax-m3.1-flash-cybersecurity) minimax-m3.1-flash-cybersecurity | Security | $2.00 | $4.00 | 262K | openai |
| [OrcaCyber MiniMax M3.1 Flash (Uncensored)](https://pentestllm.ai/models/minimax-m3.1-flash-cybersecurity-uncensored) minimax-m3.1-flash-cybersecurity-uncensored | Security | $2.00 | $4.00 | 262K | openai |
| [OrcaCyber Qwen3.8 Flash Next (Uncensored)](https://pentestllm.ai/models/orcacyber-qwen3.8-flash-next-uncensored) orcacyber-qwen3.8-flash-next-uncensored | Security | $2.00 | $4.00 | 262K | openai |
| [OrcaCyber Qwen3.8 Flash Next](https://pentestllm.ai/models/qwen3.8-flash-next-cybersecurity) qwen3.8-flash-next-cybersecurity | Security | $2.00 | $4.00 | 262K | openai |
| [Uncensored Qwen3.8 Flash Next Cybersecurity](https://pentestllm.ai/models/qwen3.8-flash-next-cybersecurity-uncensored) qwen3.8-flash-next-cybersecurity-uncensored | Security | $2.00 | $4.00 | 262K | openai |
| [Cyber Frontier](https://pentestllm.ai/models/cyber-frontier) cyber-frontier | Security | $5.25 | $15.75 | 1049K | openai |
| [OrcaCyber Zero 1.5](https://pentestllm.ai/models/orca-zero-1.5-cybersecurity) orca-zero-1.5-cybersecurity | Security | $7.50 | $18.75 | 999K | openai |
| [OrcaCyber Zero 1.5 (Uncensored)](https://pentestllm.ai/models/orca-zero-1.5-cybersecurity-uncensored) orca-zero-1.5-cybersecurity-uncensored | Security | $7.50 | $18.75 | 999K | openai |

[Full price list and tool fees](https://pentestllm.ai/pricing) · [Every model](https://pentestllm.ai/models) · [API docs](https://pentestllm.ai/docs)

## Questions

### Can the model create or close a Jira issue?

No. It has no Jira credentials, no tools and no network. Your script writes draft files to disk, and a person files the ticket in Jira. Closing an issue is a decision made in the tracker by its owner, and the drafts never touch it.

### How do draft fields map to my project's required fields?

Through a template your team approves. Read the field list and the document format for your own Jira site, then map each record field to one project field in code. The model writes only the summary and description text, never a field id.

### How do I avoid duplicate tickets for the same finding?

Hash a JSON array of the engagement ID, component, weakness and exact location, store it as a label, and search the project for that label before anyone files a draft. A match means link or update the issue that already exists.

### Does the model set severity or an assignee?

No. Severity is the one the analyst recorded, mapped to a priority name by your template. The output contract excludes assignee and due-date fields. A reviewer must still catch invented claims inside the prose before filing a ticket.

## Read next

[AI vulnerability triage Dedupe, rank and route findings with a model, and a person confirming each decision.](https://pentestllm.ai/ai-vulnerability-triage) [Remediation section with an LLM The shortest fix, the owner and one plain sentence per confirmed finding, checked against the client’s environment.](https://pentestllm.ai/pentest-remediation-writing) [Pentest report writing Drafting findings, impact, remediation and the executive summary, with client data redacted first.](https://pentestllm.ai/pentest-report-writing) [CI scan report review A review job after an authorized SAST or DAST scan: redacted extract in, schema-bound draft out, the pipeline gate untouched.](https://pentestllm.ai/ci-security-report-review)

Facts about other products and tools on this page were read from their own pages on 22 November 2026: [Jira Cloud platform REST API, issues](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/), [Atlassian Document Format structure](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). They change; check the source before relying on a figure.

## One key, from $3

For systems you own or may test in writing: [acceptable use](https://pentestllm.ai/acceptable-use).

[Get a key](https://app.pentestllm.ai/console)
