2.2 KiB
2.2 KiB
Jira AI Agent
Overview
The Jira AI Agent is designed to assist with managing tasks within Jira projects, providing capabilities such as creating, searching, updating, assigning, linking, and commenting on issues. Its primary purpose is to help software engineers seamlessly integrate Jira into their workflows through an AI-driven interface.
Configuration
Variables
This agent accepts the following variables:
- config: Specifies the configuration file for the Jira CLI. This configuration should be located at
~/.config/.jira/<config_name>.yml. Example:work. - project: The Jira project key where operations are executed. Example:
PAN.
Customization
For a User's Specific Jira Instance
-
Config File Setup:
- Users must ensure there is a configuration file for their Jira instance located at
~/.config/.jira/. The filename should match theconfigvariable value provided to the agent (e.g., forconfigset towork, ensure awork.ymlexists).
- Users must ensure there is a configuration file for their Jira instance located at
-
State, Issue Type, and Priority Customization:
- Modify the functions
_issue_type_choiceand_issue_state_choiceintools.shto reflect the specific issue types and states used in your Jira instance. - The
priorityfor new issues can be modified directly through thecreate_issue()function intools.shwith options set to the values available in your Jira instance (e.g., Medium, Highest, etc.).
- Modify the functions
How the Agent Works
The agent works by utilizing provided variables to interact with Jira CLI commands through tools.sh. The config variable links directly to a .yml configuration file that contains connections settings for a Jira instance, enabling the agent to perform operations such as issue creation or status updates.
- Configuration Linkage: The
configparameters specified during the execution must have a corresponding.ymlconfiguration file at~/.config/.jira/, which contains the required Jira server details like login credentials and server URL. - Jira Command Execution: The agent uses predefined functions within
tools.shto execute Jira operations. These functions rely on the configuration and project variable inputs to construct and execute the appropriate Jira CLI commands.