jira 插件

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

用例

YAML

  1. tools:
  2. # name of the tool
  3. - name: jira
  4. # id of the tool instance
  5. instanceID: default
  6. # format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
  7. dependsOn: [ ]
  8. # options for the plugin
  9. options:
  10. scm:
  11. # scm common field
  12. branch: YOUR_REPO_BRANCH
  13. token: YOUR_REPO_SCM_TOKEN
  14. # you can directly use the url of repo (git@github.com/root/test-exmaple.git for example)
  15. url: YOUR_REPO_URL
  16. # or you can config detailed fields for this repo
  17. owner: YOUR_REPO_OWNER
  18. org: YOUR_REPO_ORG
  19. name: YOUR_REPO_NAME
  20. scmType: github
  21. jira:
  22. # jira token
  23. token: JIRA_TOKEN
  24. # "base url: https://id.atlassian.net"
  25. baseURL: https://JIRA_ID.atlassian.net
  26. # "need real user email in cloud Jira"
  27. userEmail: JIRA_USER_EMAIL
  28. # "get it from project url, like 'HEAP' from https://merico.atlassian.net/jira/software/projects/HEAP/pages"
  29. projectKey: JIRA_PROJECT_KEY

注意:

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