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

88 lines
3.6 KiB
Markdown
Raw Normal View History

2021-04-29 21:17:54 +05:30
---
2022-11-25 23:54:43 +05:30
stage: Manage
2021-10-27 15:23:28 +05:30
group: Integrations
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)**
2021-06-08 01:23:25 +05:30
To [integrate Jira with GitLab](index.md), you must
2021-04-29 21:17:54 +05:30
create a 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, you must:
1. [Create a Jira Server user](#create-a-jira-server-user).
1. [Create a Jira Server group](#create-a-jira-server-group) for the user to belong to.
1. [Create a permission scheme for your group](#create-a-permission-scheme-for-your-group).
## Create a Jira Server user
2021-12-11 22:18:48 +05:30
This process creates a user named `gitlab`:
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.
2021-04-29 21:17:54 +05:30
1. In the upper right corner of the top menu, go to the gear icon and
select **User Management**.
1. Create a new user account (`gitlab`) with write access to
projects in Jira.
- **Email address**: Jira requires a valid email address, and sends a verification
2021-11-11 11:23:49 +05:30
email, which is required to set up the password.
2021-04-29 21:17:54 +05:30
- **Username**: Jira creates the username by using the email prefix. You can change
this username later.
- **Password**: You must create a password, because the GitLab integration doesn't
support SSO, such as SAML. To create the password, visit the user profile, look up
the username, and set a password.
1. Select **Create user**.
After you create the user, create a group for it.
## Create a Jira Server group
2021-12-11 22:18:48 +05:30
After you [create a Jira Server user](#create-a-jira-server-user), create a
group to assign permissions to the user.
2021-04-29 21:17:54 +05:30
2021-12-11 22:18:48 +05:30
This process adds the `gitlab` user you created to a new group named `gitlab-developers`:
1. Sign in to your Jira instance as a Jira administrator.
2021-04-29 21:17:54 +05:30
1. In the upper right corner of the top menu, go to the gear icon and
select **User Management**.
2021-12-11 22:18:48 +05:30
1. On the sidebar, select **Groups**.
2021-04-29 21:17:54 +05:30
![Jira create new user](img/jira_create_new_group.png)
1. In the **Add group** section, enter a **Name** for the group (for example,
`gitlab-developers`), and then select **Add group**.
1. To add the `gitlab` user to the `gitlab-developers` group, select **Edit members**.
The `gitlab-developers` group should be listed in the leftmost box 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**.
2021-12-11 22:18:48 +05:30
The `gitlab` user appears in the **Group member(s)**
section.
2023-01-13 00:05:48 +05:30
<!-- vale gitlab.BadPlurals = YES -->
2021-04-29 21:17:54 +05:30
2021-12-11 22:18:48 +05:30
![Jira added user to group](img/jira_added_user_to_group.png)
2021-04-29 21:17:54 +05:30
Next, create a permission scheme for your group.
## Create a permission scheme for your group
After creating the group in Jira, grant permissions to the group by creating a permission scheme:
2021-12-11 22:18:48 +05:30
1. Sign in to your Jira instance as a Jira administrator.
2021-04-29 21:17:54 +05:30
1. In the upper right corner of the top menu, go to the gear icon and
select **Issues**.
2021-12-11 22:18:48 +05:30
1. On the sidebar, select **Permission Schemes**.
2021-04-29 21:17:54 +05:30
1. Select **Add Permission Scheme**, enter a **Name** and (optionally) a
**Description**, and then select **Add**.
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**.
1. From the **Group** dropdown list, select `gitlab-developers`, and then select **Grant**.
2021-04-29 21:17:54 +05:30
![Jira group access](img/jira_group_access.png)
Write down the new Jira username and its
password, as you need them when
2021-10-27 15:23:28 +05:30
[configuring GitLab](configure.md).