Gitlab与Jira集成工具smart commit
smart commit是atlassian公司的一个与gitlab集成的智能提交工具,他可以实现与jira项目的问题链接,自动添加评论,修改时长,智能修改任务状态。
§smart commit 文档
参考以下文档:
关于 jira confluence gitlab jenkins 的配置与整合以及常见的使用方式
Processing Jira Software issues with Smart Commit messages
§步骤
§1. 在jira上创建一个对要链接到gitlab项目拥有读写权限的用户(需要多个用户分权连接,可以加入到相同的组来管理)
§2. 在gitlab上的指定项目上,添加jira集成连接
连接配置信息有
Field | Description |
---|---|
Web URL | The base URL to the JIRA instance web interface which is being linked to this GitLab project. E.g., https://jira.example.com. |
JIRA API URL | The base URL to the JIRA instance API. Web URL value will be used if not set. E.g., https://jira-api.example.com. |
Username | The user name created in configuring JIRA step. Using the email address will cause 401 unauthorized. |
Password | The password of the user created in configuring JIRA step. |
Transition ID | This is the ID of a transition that moves issues to the desired state. Closing JIRA issues via commits or Merge Requests won’t work if you don’t set the ID correctly |
关键在于Transition ID,即转换ID,需要在jira管理后台中,问题—>工作流中查看对应项目工作中的转换结束的ID。