debian-mirror-gitlab/doc/user/crm/index.md

264 lines
9.3 KiB
Markdown
Raw Normal View History

2022-01-26 12:08:38 +05:30
---
2023-05-27 22:25:52 +05:30
stage: Monitor
group: Respond
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
2022-01-26 12:08:38 +05:30
---
# Customer relations management (CRM) **(FREE)**
2022-05-07 20:08:51 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/2256) in GitLab 14.6 [with a flag](../../administration/feature_flags.md) named `customer_relations`. Disabled by default.
> - In GitLab 14.8 and later, you can [create contacts and organizations only in root groups](https://gitlab.com/gitlab-org/gitlab/-/issues/350634).
2022-07-16 23:28:13 +05:30
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/346082) in GitLab 15.0.
2022-07-23 23:45:48 +05:30
> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/346082) in GitLab 15.1.
2022-05-07 20:08:51 +05:30
2022-01-26 12:08:38 +05:30
With customer relations management (CRM) you can create a record of contacts
(individuals) and organizations (companies) and relate them to issues.
2022-05-07 20:08:51 +05:30
Contacts and organizations can only be created for root groups.
2022-01-26 12:08:38 +05:30
You can use contacts and organizations to tie work to customers for billing and reporting purposes.
2023-04-23 21:23:45 +05:30
For more information about what is planned for the future, see [issue 2256](https://gitlab.com/gitlab-org/gitlab/-/issues/2256).
2022-01-26 12:08:38 +05:30
2022-03-02 08:16:31 +05:30
## Permissions
| Permission | Guest | Reporter | Developer, Maintainer, and Owner |
| ---------- | ---------------- | -------- | -------------------------------- |
| View contacts/organizations | | ✓ | ✓ |
| View issue contacts | | ✓ | ✓ |
| Add/remove issue contacts | | ✓ | ✓ |
| Create/edit contacts/organizations | | | ✓ |
## Enable customer relations management (CRM)
2022-07-23 23:45:48 +05:30
Customer relations management features must be enabled at the group level. If your
group also contains subgroups, and you want to use CRM features in the subgroup,
you must enable CRM features for the subgroup.
2022-03-02 08:16:31 +05:30
2022-07-23 23:45:48 +05:30
To enable customer relations management in a group or subgroup:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group or subgroup.
2022-03-02 08:16:31 +05:30
1. On the left sidebar, select **Settings > General**.
1. Expand the **Permissions and group features** section.
2022-08-13 15:12:31 +05:30
1. Select **Customer relations is enabled**.
2022-03-02 08:16:31 +05:30
1. Select **Save changes**.
2022-01-26 12:08:38 +05:30
## Contacts
### View contacts linked to a group
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-01-26 12:08:38 +05:30
To view a group's contacts:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-01-26 12:08:38 +05:30
1. On the left sidebar, select **Customer relations > Contacts**.
2022-06-21 17:19:12 +05:30
![Contacts list](crm_contacts_v14_10.png)
2022-01-26 12:08:38 +05:30
### Create a contact
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Developer role for the project.
2022-01-26 12:08:38 +05:30
To create a contact:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-01-26 12:08:38 +05:30
1. On the left sidebar, select **Customer relations > Contacts**.
1. Select **New contact**.
1. Complete all required fields.
1. Select **Create new contact**.
You can also [create](../../api/graphql/reference/index.md#mutationcustomerrelationscontactcreate)
contacts using the GraphQL API.
### Edit a contact
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Developer role for the project.
2022-01-26 12:08:38 +05:30
To edit an existing contact:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-01-26 12:08:38 +05:30
1. On the left sidebar, select **Customer relations > Contacts**.
1. Next to the contact you wish to edit, select **Edit** (**{pencil}**).
1. Edit the required fields.
1. Select **Save changes**.
You can also [edit](../../api/graphql/reference/index.md#mutationcustomerrelationscontactupdate)
contacts using the GraphQL API.
2023-01-13 00:05:48 +05:30
#### Change the state of a contact
Each contact can be in one of two states:
- **Active**: contacts in this state can be added to an issue.
- **Inactive**: contacts in this state cannot be added to an issue.
To change the state of a contact:
1. On the top bar, select **Main menu > Groups** and find your group.
1. On the left sidebar, select **Customer relations > Contacts**.
1. Next to the contact you wish to edit, select **Edit** (**{pencil}**).
1. Select or clear the **Active** checkbox.
1. Select **Save changes**.
2022-01-26 12:08:38 +05:30
## Organizations
### View organizations
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-01-26 12:08:38 +05:30
To view a group's organizations:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-01-26 12:08:38 +05:30
1. On the left sidebar, select **Customer relations > Organizations**.
2022-06-21 17:19:12 +05:30
![Organizations list](crm_organizations_v14_10.png)
2022-01-26 12:08:38 +05:30
### Create an organization
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Developer role for the project.
2022-01-26 12:08:38 +05:30
To create an organization:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-01-26 12:08:38 +05:30
1. On the left sidebar, select **Customer relations > Organizations**.
1. Select **New organization**.
1. Complete all required fields.
1. Select **Create new organization**.
You can also [create](../../api/graphql/reference/index.md#mutationcustomerrelationsorganizationcreate)
organizations using the GraphQL API.
### Edit an organization
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Developer role for the project.
2022-06-21 17:19:12 +05:30
To edit an existing organization:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-06-21 17:19:12 +05:30
1. On the left sidebar, select **Customer relations > Organizations**.
1. Next to the organization you wish to edit, select **Edit** (**{pencil}**).
1. Edit the required fields.
1. Select **Save changes**.
You can also [edit](../../api/graphql/reference/index.md#mutationcustomerrelationsorganizationupdate)
2022-01-26 12:08:38 +05:30
organizations using the GraphQL API.
## Issues
2022-08-13 15:12:31 +05:30
If you use [Service Desk](../project/service_desk.md) and create issues from emails,
issues are linked to contacts matching the email addresses in the sender and CC of the email.
2022-01-26 12:08:38 +05:30
### View issues linked to a contact
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-07-16 23:28:13 +05:30
To view a contact's issues, select a contact from the issue sidebar, or:
2022-01-26 12:08:38 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-01-26 12:08:38 +05:30
1. On the left sidebar, select **Customer relations > Contacts**.
1. Next to the contact whose issues you wish to view, select **View issues** (**{issues}**).
### View issues linked to an organization
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-01-26 12:08:38 +05:30
To view an organization's issues:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Groups** and find your group.
2022-01-26 12:08:38 +05:30
1. On the left sidebar, select **Customer relations > Organizations**.
1. Next to the organization whose issues you wish to view, select **View issues** (**{issues}**).
### View contacts linked to an issue
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-01-26 12:08:38 +05:30
You can view contacts associated with an issue in the right sidebar.
To view a contact's details, hover over the contact's name.
![Issue contacts](issue_crm_contacts_v14_6.png)
You can also view issue contacts using the
[GraphQL](../../api/graphql/reference/index.md#mutationcustomerrelationsorganizationcreate)
API.
### Add or remove issue contacts
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-01-26 12:08:38 +05:30
### Add contacts to an issue
2023-01-13 00:05:48 +05:30
To add [active](#change-the-state-of-a-contact) contacts to an issue use the `/add_contacts [contact:address@example.com]`
2022-01-26 12:08:38 +05:30
[quick action](../project/quick_actions.md).
You can also add, remove, or replace issue contacts using the
[GraphQL](../../api/graphql/reference/index.md#mutationissuesetcrmcontacts)
API.
### Remove contacts from an issue
2022-04-04 11:22:00 +05:30
To remove contacts from an issue use the `/remove_contacts [contact:address@example.com]`
2022-01-26 12:08:38 +05:30
[quick action](../project/quick_actions.md).
You can also add, remove, or replace issue contacts using the
[GraphQL](../../api/graphql/reference/index.md#mutationissuesetcrmcontacts)
API.
2022-04-04 11:22:00 +05:30
2022-08-27 11:52:29 +05:30
## Autocomplete contacts
2022-04-04 11:22:00 +05:30
2022-07-16 23:28:13 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/2256) in GitLab 14.8 [with a flag](../../administration/feature_flags.md) named `contacts_autocomplete`. Disabled by default.
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/352123) in GitLab 15.0.
2022-08-13 15:12:31 +05:30
> - [Generally available](https://gitlab.com/gitlab-org/gitlab/-/issues/352123) in GitLab 15.2. [Feature flag `contacts_autocomplete`](https://gitlab.com/gitlab-org/gitlab/-/issues/352123) removed.
2022-04-04 11:22:00 +05:30
2023-01-13 00:05:48 +05:30
When you use the `/add_contacts` quick action, follow it with `[contact:` and an autocomplete list with the [active](#change-the-state-of-a-contact) contacts appears:
2022-04-04 11:22:00 +05:30
```plaintext
/add_contacts [contact:
2023-01-13 00:05:48 +05:30
```
When you use the `/remove_contacts` quick action, follow it with `[contact:` and an autocomplete list with the contacts added to the issue appears:
```plaintext
2022-04-04 11:22:00 +05:30
/remove_contacts [contact:
```
2022-06-21 17:19:12 +05:30
## Moving objects with CRM entries
The root group is the topmost group in the group hierarchy.
2022-11-25 23:54:43 +05:30
When you move an issue, project, or group **in the same group hierarchy**,
2022-06-21 17:19:12 +05:30
issues retain their contacts.
When you move an issue or project and the **root group changes**,
issues lose their contacts.
When you move a group and its **root group changes**:
- All unique contacts and organizations are migrated to the new root group.
- Contacts that already exist (by email address) are deemed duplicates and deleted.
- Organizations that already exist (by name) are deemed duplicates and deleted.
- All issues retain their contacts or are updated to point at contacts with the same email address.
If you do not have permission to create contacts and organizations in the new
root group, the group transfer fails.