> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Jira 工具

## 代码

```python cookbook/tools/jira_tools.py theme={null}
from agno.agent import Agent
from agno.tools.jira import JiraTools

agent = Agent(
    tools=[JiraTools()],
    show_tool_calls=True,
    markdown=True,
)

agent.print_response("列出项目 'DEMO' 中的所有未完成 issue")
agent.print_response("在项目 'DEMO' 中创建一个优先级为高的任务")
```

## 用法

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="设置您的 Jira 凭证">
    ```bash theme={null}
    export JIRA_API_TOKEN=xxx
    export JIRA_SERVER_URL=xxx
    export JIRA_EMAIL=xxx
    export OPENAI_API_KEY=xxx
    ```
  </Step>

  <Step title="安装库">
    ```bash theme={null}
    pip install -U jira openai agno
    ```
  </Step>

  <Step title="运行 Agent">
    <CodeGroup>
      ```bash Mac theme={null}
      python cookbook/tools/jira_tools.py
      ```

      ```bash Windows theme={null}
      python cookbook/tools/jira_tools.py
      ```
    </CodeGroup>
  </Step>
</Steps>
