Skip to main content
本 notebook 介绍如何使用 Jira 工具包。 The Jira toolkit allows agents to interact with a given Jira instance, performing actions such as searching for issues and creating issues, the tool wraps the atlassian-python-api library, for more see: atlassian-python-api.readthedocs.io/jira.html

安装与设置

要使用此工具,你必须首先 set as environment variables: JIRA_INSTANCE_URL, JIRA_CLOUD You have the choice between two authentication methods:
  • API token authentication: set the JIRA_API_TOKEN (and JIRA_USERNAME if needed) environment variables
  • OAuth2.0 authentication: set the JIRA_OAUTH2 environment variable as a dict having as fields “client_id” and “token” which is a dict containing at least “access_token” and “token_type”
For authentication with API token
For authentication with a Oauth2.0

Tool usage

Let’s see what individual tools are in the Jira toolkit: