Skip to main content

No project description provided

Project description

Jira Issue Tool

This tool performs basic Jira issue operations, including search, creation, commentation, deletion, and modifications of summary, assignee, task status, and due date.

Usage

Example:

from llama_index.tools.jira_issue import JiraIssueToolSpec
from llama_index.llms.openai import OpenAI

llm = OpenAI(model="gpt-4o-mini", api_key=OPENAI_API_KEY, temperature=0.0)

tool_spec = JiraIssueToolSpec(
    server_url=SERVER, email=EMAIL, api_token=API_KEY
)

agent_name = "Jira Issue Agent"
project_key = "YOUR_PROJECT_KEY"
system_prompt = f"""You are a helpful assistant that answers JIRA-related questions with a list of JIRA tools available for use. Your project key is '{project_key}'."""

agent = ReActAgent.from_tools(
    jira_tools,
    llm=llm,
    callback_manager=callback_manager,
    name=agent_name,
    system_prompt=system_prompt,
    verbose=True,
    max_iterations=20,
)

# Multi-step bug issue creation
response = await agent.achat(
    "Create a test bug due by Aug 2 2025 and assign it to John Doe. this bug addresses the wrong temperature setting in the LLMs."
)
print(response)

# Search & Reassign an issue
response = await agent.achat(
    "There's an issue about building a jira agent, assigned to John Doe. Find it and reassign it to Jane Doe."
)
print(response)

# Search & Mark an issue 'Done'
response = await agent.achat(
    "Find an issue about llamaindex due on Aug 2 2025. Change its status to Done."
)
print(response)

# Delete issues
response = await agent.achat("Delete all issues assigned to John Doe")
print(response)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_jira_issue-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_jira_issue-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_jira_issue-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_jira_issue-0.1.0.tar.gz
Algorithm Hash digest
SHA256 025536500a6c3576f46efe7aa8e9aaaf657209b71e3388c4acd7349f1be671ae
MD5 89b8fa3bdb0101c137c621af541dd6f2
BLAKE2b-256 0656a38a151a944b2464c7577018b8d14fb9d4b65278a32b74d82d0edcc80004

See more details on using hashes here.

File details

Details for the file llama_index_tools_jira_issue-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_jira_issue-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 748e39fd67b2a5b7d9a25aefbb15068feb8c52bd3fcfb34763c98e5b79f8b333
MD5 36075922bcba5d8f236fc273b6afd0e3
BLAKE2b-256 ba71bf37264144db1459d3f4fe4df9eaa6a48fbbd121b89adb319caeb9355bb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page