如何在gitlab上配置jira外部问题跟踪器

时间:2014-11-06 09:01:19

标签: jira gitlab

我无法找到有关如何在gitlab上将jira配置为外部问题跟踪器的任何信息。

我已尝试在/ etc / gitlab / gitlab-rc上编写以下内容但似乎没有做任何事情。我执行" gitlab-ctl reconfigure"但是gitlab.yml没有变化,我在项目设置上看不到任何Jira选项。

等/ gitlab / gitlab.rb:

gitlab-rails['issues_tracker'] = "jira"
gitlab-rails['issues_tracker_jira_title'] = " Atlassian Jira"
gitlab-rails['issues_tracker_jira_project_url'] = "http://myjiraserver/issues/?jql=project=:issues_tracker_id"
gitlab-rails['issues_tracker_jira_issues_url'] = "http://myjiraserver/browse/:id"
gitlab-rails['issues_tracker_jira_new_issue_url'] = "http://myjiraserver/secure/CreateIssue.jspa"

1 个答案:

答案 0 :(得分:2)

如果您使用以下内容:

gitlab_rails['issues_tracker_jira'] = true
gitlab_rails['issues_tracker_jira_title'] = " Atlassian Jira"
gitlab_rails['issues_tracker_jira_project_url'] = "http://myjiraserver/jira/issues/?jql=project=:issues_tracker_id"
gitlab_rails['issues_tracker_jira_issues_url'] = "http://myjiraserver/jira/browse/:id"
gitlab_rails['issues_tracker_jira_new_issue_url'] = "http://myjiraserver/jira/secure/CreateIssue.jspa"

它应该工作;你的第一个规则没有格式化为gitlab期望它是:)(添加规则然后'gitlab-ctl reconfigure')