GitLab を Jira と統合する

Connecting your GitLab account to Jira means your team can view their development activity in the context of the Jira work items they’re working on — no need to switch between tools. When a Jira work item key is referenced in a commit, branch, or merge request in GitLab, the Jira work item will update automatically to show the latest development information.

If you set up a CI/CD pipeline in GitLab, Jira will also show build and deployment information on your Jira work items, on the board, on the deployments timeline, and in the Releases hub. How to integrate deployments with Jira

GitLab アカウントを Jiraに接続する

GitLab Marketplace アプリをインストールする

  1. Atlassian Marketplace に進んで GitLab.com for Jira Cloud アプリをインストールします。

  2. Once the app has installed, follow the link Manage apps. If the app is already installed on your Jira site, log in to Jira and select the Settings icon, then select Apps, then Manage apps.

GitLab 名前スペースを Jira に追加する

  1. Jira の [アプリを管理] ページで、GitLab for Jira アプリの詳細を展開して [開始] を選択します。

  2. [名前スペースを追加] を選択します。

  3. Select or enter the namespace of your GitLab project. If the URL for your project is https://gitlab.com/mynamespace/new-project then the namespace is mynamespace.

Jira 統合を GitLab でセットアップする

  1. GitLab.com アカウントにログインします。

  2. Go to your project and select Settings, then Integrations.

  3. [統合を追加] で [Jira] を選択します。

  4. Jira サイトの詳細を次のように入力します。

    1. Web URL — your Jira site URL (e.g. https://myjirasite.atlassian.net)

    2. Username or email — the username or email registered on your Jira profile.

    3. Password or API token — create an API token, copy it to your clipboard, and paste it in. How to manage API tokens for your Atlassian account

  5. [テスト設定] を選択して、接続が機能しているかどうかを確認します。

  6. [変更を保存] を選択します。 

Add Jira work item keys in your commits, branches, and merge requests

To link your team’s development activity to Jira, start including work item keys in commit messages, branch names, and merge request titles. Reference work items in your development work

GitLab Jira 統合の動画デモをご覧ください。

CI/CD パイプラインを GitLab でセットアップする

  1. GitLab.com アカウントにログインします。

  2. Go to your project and select CI/CD, then Pipelines.

  3. パイプラインを含む .gitlab-ci.yml ファイルを作成します。

  4. Add a deploy stage and set your environment. How to set up environments in GitLab

To send build and deployment information from GitLab to Jira, your team must include Jira work item keys in their commit messages and branch names. Whenever a pipeline runs in GitLab, the integration will look for Jira work item keys in the branch name and commit messages. If it finds work item keys, it will send build and deployment information to Jira. This information will be shown in the development panel on your team’s Jira work items, on the board, on the Deployments timeline, and in the Releases hub.

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。