mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 17:23:15 +00:00
35 lines
963 B
Python
35 lines
963 B
Python
|
|
from typing import Any
|
||
|
|
|
||
|
|
from ..utils.jira import create_issue
|
||
|
|
|
||
|
|
|
||
|
|
async def jira_create_issue(
|
||
|
|
project_key: str,
|
||
|
|
summary: str,
|
||
|
|
description: str | None = None,
|
||
|
|
issue_type: str = "Task",
|
||
|
|
priority: str | None = None,
|
||
|
|
labels: list[str] | None = None,
|
||
|
|
) -> dict[str, Any]:
|
||
|
|
"""Create a new Jira issue.
|
||
|
|
|
||
|
|
Args:
|
||
|
|
project_key: The Jira project key to create the issue in (e.g. PROJ).
|
||
|
|
summary: The issue title/summary.
|
||
|
|
description: Optional markdown-formatted issue description.
|
||
|
|
issue_type: The issue type name (default "Task").
|
||
|
|
priority: Optional priority name (e.g. "High").
|
||
|
|
labels: Optional list of label strings.
|
||
|
|
|
||
|
|
Returns:
|
||
|
|
Dictionary with 'success' (bool) and 'issue' (key, id, url).
|
||
|
|
"""
|
||
|
|
return await create_issue(
|
||
|
|
project_key,
|
||
|
|
summary,
|
||
|
|
description=description,
|
||
|
|
issue_type=issue_type,
|
||
|
|
priority=priority,
|
||
|
|
labels=labels,
|
||
|
|
)
|