Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab commit messages link to JIRA

Tags:

gitlab

jira

I'm trying to link Gitlab commit messages to JIRA, that is, if a user commits such as:

PROJECT-ID: Some commit message

Then through the Gitlab UI, it links these commit messages to JIRA.

The only way I can seem to do this at the moment takes control of issue tracking itself from Gitlab and links the "Issue" user interface button in Gitlab back to JIRA.

I'd like to still manage and raise issues in Gitlab, but just have Gitlab link any formatted commit messages to JIRA.

I'm using the community addtion

like image 481
crebbo Avatar asked Sep 04 '14 11:09

crebbo


People also ask

How do you add Jira link in commit message?

Open a Jira issue then go to the Git Commits tab. In this tab, you will see commits, files changed, links to external repository, commit author and more. git commit message to link the commit to this issue. The git commit will get associated with the Jira issue if the commit message includes the exact issue ID.

How do I import a GitLab issue into Jira?

There is no tool that would allow you to export everything from Gitlab and import it to Jira, the closest you can get is to export your issues in Gitlab to a csv file and then import that file to an existing project in Jira that has been configured to behave similar to what you currently have.


1 Answers

Unless you set GitLab to use JIRA as your issue tracker, you can't make it link formatted commit messages to JIRA automatically.

You can do this only if you set JIRA to be your issue tracker in GitLab. You can find information about doing that here: http://doc.gitlab.com/ee/integration/jira.html

UPDATE: As Peter said, this functionality is only available using GitLab's Enterprise Edition.

UPDATE: As jalanb stated in the comment below, this functionality is now available in the community edition as well.

like image 78
ssfinney Avatar answered Nov 10 '22 16:11

ssfinney