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.2.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.2.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.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_jira_issue-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2ba6eb73b73dda499e10e2a279e7103e37805c2938165c72ed251067356b8e5f
MD5 65f14788ac06c24390674cded7a15ef3
BLAKE2b-256 84594296ebe33c03c986107b55e944fa7cf2d5d08b7864a7a646a731211695fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_jira_issue-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28fed3045ce869d880f402483d332e04d66ac5b45c850ceb4fe34cbe97fe7f15
MD5 86c30109a3ac21b956eb818702434075
BLAKE2b-256 e0ed08248c05b4e64a6cb9f4ca6dd22f7f916a1aab87d962cf5a8783e9b4832b

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