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.
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 answeredprint(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. Writing the fix itself is covered on the remediation writing page. 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, and keep your own map to restore them in the draft. The 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.
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.
| Wire formats | |||||
|---|---|---|---|---|---|
| Qwen3.8 27B Cybersecurity | Security | $0.40 | $2.40 | 262K | |
| Uncensored Qwen3.8 27b Cybersecurity | Security | $0.40 | $2.40 | 262K | |
| Gemma 4 26B A4B Cybersecurity | Security | $0.4224 | $1.3376 | 262K | |
| Gemma 4 26B A4B Cybersecurity (Uncensored) | Security | $0.48 | $1.52 | 262K | |
| GLM-5.3 Flash Cybersecurity | Security | $0.4935 | $1.645 | 1049K | |
| GLM-5.3 Flash Cybersecurity (Uncensored) | Security | $0.5093 | $1.6975 | 1049K | |
| Red Team (Flash) | Security | $0.90 | $3.00 | 1000K | |
| Red Team (Pro) | Security | $1.50 | $6.00 | – | |
| OrcaCyber MiniMax M3.1 Flash | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber MiniMax M3.1 Flash (Uncensored) | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber Qwen3.8 Flash Next (Uncensored) | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber Qwen3.8 Flash Next | Security | $2.00 | $4.00 | 262K | |
| Uncensored Qwen3.8 Flash Next Cybersecurity | Security | $2.00 | $4.00 | 262K | |
| Cyber Frontier | Security | $5.25 | $15.75 | 1049K | |
| OrcaCyber Zero 1.5 | Security | $7.50 | $18.75 | 999K | |
| OrcaCyber Zero 1.5 (Uncensored) | Security | $7.50 | $18.75 | 999K |
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.