Clasificador de tipos de incidencia de Jira
Agente de Jira que clasifica el tipo de problema correspondiente para cada problema en un proyecto determinado.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
ParseData-aice2[<div><img src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>Parse Data]
style ParseData-aice2 stroke:#a170ff
Prompt-8pfns[<div><img src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt]
style Prompt-8pfns stroke:#a170ff
ChatOutput-zqoh9[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-zqoh9 stroke:#a170ff
OpenAIModel-zu1vo[<div><img src="/_astro/openAI.BhmuxEs3.svg" style="height: 20px !important;width: 20px !important"/></div>OpenAI]
style OpenAIModel-zu1vo stroke:#a170ff
JiraReader-i2erv[List Issue Types]
style JiraReader-i2erv stroke:#a170ff
JiraIssueHandler-8ctxx[Update Subtask]
style JiraIssueHandler-8ctxx stroke:#a170ff
JiraIssueHandler-phklc[Update Issue]
style JiraIssueHandler-phklc stroke:#a170ff
JiraReader-3f3ut[Jira Reader]
style JiraReader-3f3ut stroke:#a170ff
AdvancedAgent-4g9ht[Agent2]
style AdvancedAgent-4g9ht stroke:#a170ff
ParseData-aice2 -.- Prompt-8pfns
linkStyle 0 stroke:#a170ff
JiraReader-3f3ut -.- ParseData-aice2
linkStyle 1 stroke:#a170ff
Prompt-8pfns -.- AdvancedAgent-4g9ht
linkStyle 2 stroke:#a170ff
AdvancedAgent-4g9ht -.- ChatOutput-zqoh9
linkStyle 3 stroke:#a170ff
OpenAIModel-zu1vo -.- AdvancedAgent-4g9ht
linkStyle 4 stroke:#a170ff
JiraIssueHandler-phklc -.- AdvancedAgent-4g9ht
linkStyle 5 stroke:#a170ff
JiraIssueHandler-8ctxx -.- AdvancedAgent-4g9ht
linkStyle 6 stroke:#a170ff
JiraReader-i2erv -.- AdvancedAgent-4g9ht
linkStyle 7 stroke:#a170ff
Jira Issue Type Classifier
🧩 Overview
This workflow automates the classification and updating of Jira issues within a specified project. It reads a list of existing issues, analyzes their summaries and descriptions using an AI agent, and determines the most appropriate Jira issue type for each one. The agent then uses specialized tools to update the issues in Jira, ensuring they are correctly categorized as either standard issues or subtasks. This process streamlines project management by automating a manual and potentially inconsistent classification task.
⚙️ Main Features
- Automatically retrieves all issues from a specified Jira project.
- Formats issue data (key, summary, description) for AI analysis.
- Uses a language model agent, equipped with Jira tools, to intelligently classify each issue.
- Provides the agent with the ability to list valid issue types and update issues or subtasks directly in Jira.
- Displays the agent's final response and actions in a chat interface.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Jira Reader | Fetches all issues from the specified Jira project. | Project Key | List of Jira Issues |
| Parse Data | Formats the raw list of Jira issues into a structured text template for the AI agent to read. | Raw Jira Issue Data, Formatting Template | Formatted List of Issues |
| Prompt | Constructs the final instruction for the AI agent, incorporating the formatted issue list and the target project key. | Formatted Issue List, Project Key | Complete Agent Instruction |
| OpenAI Model | Serves as the core language model that powers the AI agent's reasoning and decision-making capabilities. | Model Configuration | Language Model Instance |
| List Issue Types Tool | A tool that allows the agent to retrieve all valid issue types available within the target Jira project. | Project Key | List of Valid Issue Types |
| Update Issue Tool | A tool that allows the agent to modify an existing standard Jira issue, specifically to change its issue type. | Issue Key, Project Key, New Issue Type | Jira Update Response |
| Update Subtask Tool | A tool that allows the agent to modify an existing subtask issue, specifically to change its issue type. | Issue Key, Parent Key, Project Key, New Issue Type | Jira Update Response |
| Advanced Agent | The central AI agent that processes the instruction, uses the provided tools to gather information and perform actions, and decides the correct issue type for each Jira item. | Agent Instruction, Language Model, Available Tools | Final Analysis and Action Summary |
| Chat Output | Displays the agent's final response, detailing the classifications performed and any updates made in Jira. | Agent's Response | Formatted Chat Message |
🧠 Notes
- The workflow requires valid Jira API credentials and an OpenAI API key to function.
- The agent is configured to use specific tools for updating both standard issues and subtasks, as the underlying Jira API calls differ for these item types.
- The classification logic is driven by the AI model's interpretation of the issue's summary and description against the project's available issue types.
- The workflow assumes the agent has the necessary permissions to read from and update issues in the target Jira project.