debian-mirror-gitlab/doc/integration/jira/jira_server_configuration.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
3.5 KiB
Markdown
Raw Normal View History

2021-04-29 21:17:54 +05:30
---
2022-11-25 23:54:43 +05:30
stage: Manage
2023-07-09 08:55:56 +05:30
group: Import and Integrate
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2021-04-29 21:17:54 +05:30
---
# Jira Server credentials **(FREE)**
2023-07-09 08:55:56 +05:30
To [integrate Jira with GitLab](configure.md), you should create a separate Jira user account for your Jira projects
to access projects in GitLab. This Jira user account must have write access to your Jira projects.
To create the credentials:
2021-04-29 21:17:54 +05:30
1. [Create a Jira Server user](#create-a-jira-server-user).
2023-07-09 08:55:56 +05:30
1. [Create a Jira Server group for the user](#create-a-jira-server-group-for-the-user).
1. [Create a permission scheme for the group](#create-a-permission-scheme-for-the-group).
Alternatively, you can use an existing Jira user account, provided the user belongs to a Jira group that
has been granted the **Administer Projects** [permission scheme](#create-a-permission-scheme-for-the-group).
After you select a Jira user account, [configure the integration](configure.md#configure-the-integration) in GitLab to use the account.
2021-04-29 21:17:54 +05:30
## Create a Jira Server user
2023-07-09 08:55:56 +05:30
To create a Jira Server user:
2021-04-29 21:17:54 +05:30
2021-12-11 22:18:48 +05:30
1. Sign in to your Jira instance as a Jira administrator.
2023-05-27 22:25:52 +05:30
1. On the top bar, in the upper-right corner, select the gear icon, then
2021-04-29 21:17:54 +05:30
select **User Management**.
2023-07-09 08:55:56 +05:30
1. [Create a new user account manually](https://confluence.atlassian.com/adminjiraserver/create-edit-or-remove-a-user-938847025.html#Create,edit,orremoveauser-CreateusersmanuallyinJira) with write access to
2021-04-29 21:17:54 +05:30
projects in Jira.
2023-07-09 08:55:56 +05:30
- **Email address**: You should use a valid email address.
- **Username**: Set the username to `gitlab`.
- **Password**: You must set a password because the Jira issue integration does not
support SSO such as SAML.
2021-04-29 21:17:54 +05:30
1. Select **Create user**.
2023-07-09 08:55:56 +05:30
Now that you've created a user named `gitlab`, it's time to create a group for the user.
2021-04-29 21:17:54 +05:30
2023-07-09 08:55:56 +05:30
## Create a Jira Server group for the user
2021-04-29 21:17:54 +05:30
2023-07-09 08:55:56 +05:30
To create a Jira Server group for the user:
2021-12-11 22:18:48 +05:30
1. Sign in to your Jira instance as a Jira administrator.
2023-05-27 22:25:52 +05:30
1. On the top bar, in the upper-right corner, select the gear icon, then
2021-04-29 21:17:54 +05:30
select **User Management**.
2023-05-27 22:25:52 +05:30
1. On the left sidebar, select **Groups**.
2021-04-29 21:17:54 +05:30
1. In the **Add group** section, enter a **Name** for the group (for example,
2023-07-09 08:55:56 +05:30
`gitlab-developers`), then select **Add group**.
2021-04-29 21:17:54 +05:30
1. To add the `gitlab` user to the `gitlab-developers` group, select **Edit members**.
2023-07-09 08:55:56 +05:30
The `gitlab-developers` group appears as a selected group.
2023-01-13 00:05:48 +05:30
<!-- vale gitlab.BadPlurals = NO -->
2021-12-11 22:18:48 +05:30
1. In the **Add members to selected group(s)** section, enter `gitlab`.
2021-04-29 21:17:54 +05:30
1. Select **Add selected users**.
2023-07-09 08:55:56 +05:30
The `gitlab` user appears as a group member.
2023-01-13 00:05:48 +05:30
<!-- vale gitlab.BadPlurals = YES -->
2021-04-29 21:17:54 +05:30
2023-07-09 08:55:56 +05:30
Now that you've added the `gitlab` user to a new group named `gitlab-developers`,
it's time to create a permission scheme for the group.
2021-04-29 21:17:54 +05:30
2023-07-09 08:55:56 +05:30
## Create a permission scheme for the group
2021-04-29 21:17:54 +05:30
2023-07-09 08:55:56 +05:30
To create a permission scheme for the group:
2021-04-29 21:17:54 +05:30
2021-12-11 22:18:48 +05:30
1. Sign in to your Jira instance as a Jira administrator.
2023-05-27 22:25:52 +05:30
1. On the top bar, in the upper-right corner, select the gear icon, then
2021-04-29 21:17:54 +05:30
select **Issues**.
2023-05-27 22:25:52 +05:30
1. On the left sidebar, select **Permission Schemes**.
2021-04-29 21:17:54 +05:30
1. Select **Add Permission Scheme**, enter a **Name** and (optionally) a
2023-07-09 08:55:56 +05:30
**Description**, then select **Add**.
2021-04-29 21:17:54 +05:30
1. In the permissions scheme list, locate your new permissions scheme, and
select **Permissions**.
2021-12-11 22:18:48 +05:30
1. Next to **Administer Projects**, select **Edit**.
2023-07-09 08:55:56 +05:30
1. From the **Group** dropdown list, select `gitlab-developers`, then select **Grant**.
2021-04-29 21:17:54 +05:30
2023-07-09 08:55:56 +05:30
You need the new Jira username and password when you [configure the integration](configure.md#configure-the-integration) in GitLab.