跳转至

jira 插件

该插件用于将 Github 中的 Issue 实时同步到 Jira 中。

用例

YAML
tools:
# name of the tool
- name: jira
  # id of the tool instance
  instanceID: default
  # format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
  dependsOn: [ ]
  # options for the plugin
  options:
    scm:
      # scm common field
      branch: YOUR_REPO_BRANCH
      token: YOUR_REPO_SCM_TOKEN
      # you can directly use the url of repo (git@github.com/root/test-exmaple.git for example)
      url: YOUR_REPO_URL
      # or you can config detailed fields for this repo
      owner: YOUR_REPO_OWNER
      org: YOUR_REPO_ORG
      name: YOUR_REPO_NAME
      scmType: github
    jira:
      # jira token
      token: JIRA_TOKEN
      # "base url: https://id.atlassian.net"
      baseURL: https://JIRA_ID.atlassian.net
      # "need real user email in cloud Jira"
      userEmail: JIRA_USER_EMAIL
      # "get it from project url, like 'HEAP' from https://merico.atlassian.net/jira/software/projects/HEAP/pages"
      projectKey: JIRA_PROJECT_KEY

注意:

  • Jira 项目的语言必须是英语。
  • Jira 的项目必须是已存在。
  • scm 配置字段用于表示代码仓库的配置信息,具体配置可查看SCM配置项
  • jira.token 需要先在 Jira 中创建,如何创建可以查询文档 Manage API tokens for your Atlassian account