Create a new Jira issue based on the provided context. Follow these steps:
- •
Gather Context: Use the provided arguments ($ARGUMENTS) to understand what issue needs to be created. If the context is unclear, ask for clarification.
- •
Get Atlassian Resources: Use
getAccessibleAtlassianResourcesto get the cloud ID for the Jira instance. - •
Find the Project: Use
getVisibleJiraProjectsto list available projects. If the user hasn't specified a project, ask them to select one. - •
Get Issue Types: Use
getJiraProjectIssueTypesMetadatato get available issue types for the selected project. - •
Prepare Issue Details:
- •Summary: Create a concise, descriptive title (max 255 chars)
- •Description: Format the description in Markdown with clear sections
- •Issue Type: Default to "Task" unless the context suggests otherwise (Bug, Story, etc.)
- •
Create the Issue: Use
createJiraIssuewith:- •
cloudId: From step 2 - •
projectKey: From selected project - •
issueTypeName: Appropriate type - •
summary: Concise title - •
description: Detailed description in Markdown
- •
- •
Report Success: Display the created issue key and URL to the user.
Guidelines
- •Keep summaries action-oriented and specific
- •Include relevant code references in the description when applicable
- •Ask for missing required information rather than guessing
- •If creating from a code context, include file paths and line numbers
- •Use appropriate issue types: Bug (defects), Story (features), Task (work items)