debian-mirror-gitlab/doc/user/project/service_desk.md

260 lines
11 KiB
Markdown
Raw Normal View History

2020-06-23 00:09:42 +05:30
---
stage: Plan
group: Certify
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-06-23 00:09:42 +05:30
---
2021-02-22 17:27:13 +05:30
# Service Desk **(CORE)**
2019-07-31 22:56:46 +05:30
2020-06-23 00:09:42 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/149) in [GitLab Premium](https://about.gitlab.com/pricing/) 9.1.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/214839) to [GitLab Starter](https://about.gitlab.com/pricing/) in 13.0.
2020-07-28 23:09:34 +05:30
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/215364) to [GitLab Core](https://about.gitlab.com/pricing/) in 13.2.
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
Service Desk is a module that allows your team to connect
with any external party through email, without any external tools.
An ongoing conversation in the same place as where your software
is built ensures user feedback ends up where it's needed.
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
With Service Desk, you can provide efficient email support to your customers. They can
email you bug reports, feature requests, or general feedback. They all end up in your
GitLab project as new issues. In turn, your team can respond directly from the project.
2019-07-31 22:56:46 +05:30
As Service Desk is built right into GitLab itself, the complexity and inefficiencies
2021-03-08 18:12:59 +05:30
of multiple tools and external integrations are eliminated. This significantly shortens
2019-07-31 22:56:46 +05:30
the cycle time from feedback to software update.
2019-12-21 20:55:43 +05:30
For an overview, check the video demonstration on [GitLab Service Desk](https://about.gitlab.com/blog/2017/05/09/demo-service-desk/).
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
## How it works
GitLab Service Desk enables people to create issues in your
GitLab instance without needing their own user account.
It provides a unique email address for end users to create issues in a project.
Follow-up notes can be sent either through the GitLab interface or by email. End
users only see the thread through email.
2019-07-31 22:56:46 +05:30
For instance, let's assume you develop a game for iOS or Android.
The codebase is hosted in your GitLab instance, built and deployed
2020-04-22 19:07:51 +05:30
with GitLab CI/CD.
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
Here's how Service Desk works for you:
2019-07-31 22:56:46 +05:30
2020-06-23 00:09:42 +05:30
1. You provide a project-specific email address to your paying customers, who can email you directly
2021-03-08 18:12:59 +05:30
from the application.
2020-06-23 00:09:42 +05:30
1. Each email they send creates an issue in the appropriate project.
1. Your team members navigate to the Service Desk issue tracker, where they can see new support
requests and respond inside associated issues.
1. Your team communicates back and forth with the customer to understand the request.
1. Your team starts working on implementing code to solve your customer's problem.
1. When your team finishes the implementation, whereupon the merge request is merged and the issue
is closed automatically.
2021-03-08 18:12:59 +05:30
1. The customer's requests are handled through email, without ever having access to your
2020-06-23 00:09:42 +05:30
GitLab instance.
1. Your team saved time by not having to leave GitLab (or setup any integrations) to follow up with
your customer.
2019-07-31 22:56:46 +05:30
## Configuring Service Desk
2021-02-22 17:27:13 +05:30
NOTE:
2020-07-28 23:09:34 +05:30
Service Desk is enabled on GitLab.com.
You can skip step 1 below; you only need to enable it per project.
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
If you have project maintainer access you have the option to set up Service Desk. Follow these steps:
2019-07-31 22:56:46 +05:30
2020-03-13 15:44:24 +05:30
1. [Set up incoming email](../../administration/incoming_email.md#set-it-up) for the GitLab instance.
2021-03-08 18:12:59 +05:30
We recommend using [email sub-addressing](../../administration/incoming_email.md#email-sub-addressing),
but in GitLab 11.7 and later you can also use [catch-all mailboxes](../../administration/incoming_email.md#catch-all-mailbox).
2020-03-13 15:44:24 +05:30
1. Navigate to your project's **Settings > General** and locate the **Service Desk** section.
1. Enable the **Activate Service Desk** toggle. This reveals a unique email address to email issues
2021-03-08 18:12:59 +05:30
to the project. These issues are [confidential](issues/confidential_issues.md), so they are
only visible to project members. Note that in GitLab 11.7, we updated the generated email
2020-03-13 15:44:24 +05:30
address's format. The older format is still supported, however, allowing existing aliases or
contacts to continue working.
2019-07-31 22:56:46 +05:30
2021-02-22 17:27:13 +05:30
WARNING:
2021-03-08 18:12:59 +05:30
This email address can be used by anyone to create an issue on this project, regardless
of their access level to your GitLab instance. We recommend **putting this behind an alias** so it can be
changed if needed. We also recommend **[enabling Akismet](../../integration/akismet.md)** on your GitLab
2020-03-13 15:44:24 +05:30
instance to add spam checking to this service. Unblocked email spam would result in many spam
issues being created.
2019-07-31 22:56:46 +05:30
2020-03-13 15:44:24 +05:30
If you have [templates](description_templates.md) in your repository, you can optionally select
one from the selector menu to append it to all Service Desk issues.
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
Service Desk is now enabled for this project! You should be able to access it from your project's
**Issues** menu.
2019-07-31 22:56:46 +05:30
2020-03-13 15:44:24 +05:30
![Service Desk Navigation Item](img/service_desk_nav_item.png)
2020-01-01 13:55:28 +05:30
2020-03-13 15:44:24 +05:30
### Using customized email templates
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/2460) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.7.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/214839) to [GitLab Starter](https://about.gitlab.com/pricing/) in 13.0.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/215364) to [GitLab Core](https://about.gitlab.com/pricing/) in 13.2.
An email is sent to the author when:
2020-03-13 15:44:24 +05:30
2021-03-08 18:12:59 +05:30
- A user submits a new issue using Service Desk.
- A new note is created on a Service Desk issue.
2020-03-13 15:44:24 +05:30
2021-01-29 00:20:46 +05:30
The body of these email messages can be customized by using templates. To create a new customized template,
2020-03-13 15:44:24 +05:30
create a new Markdown (`.md`) file inside the `.gitlab/service_desk_templates/`
directory in your repository. Commit and push to your default branch.
#### Thank you email
The **Thank you email** is the email sent to a user after they submit an issue.
2021-03-08 18:12:59 +05:30
The filename of the template has to be `thank_you.md`.
There are a few placeholders you can use which are automatically replaced in the email:
- `%{ISSUE_ID}`: issue IID
- `%{ISSUE_PATH}`: project path appended with the issue IID
2020-10-24 23:57:45 +05:30
As the Service Desk issues are created as confidential (only project members can see them)
2020-05-24 23:13:21 +05:30
the response email does not provide the issue link.
2020-03-13 15:44:24 +05:30
#### New note email
2021-03-08 18:12:59 +05:30
When a user-submitted issue receives a new comment, GitLab sends a **New note email**
to the user. The filename of this template must be `new_note.md`, and you can
use these placeholders in the email:
- `%{ISSUE_ID}`: issue IID
- `%{ISSUE_PATH}`: project path appended with the issue IID
- `%{NOTE_TEXT}`: note text
2020-03-13 15:44:24 +05:30
### Using custom email display name
2020-06-23 00:09:42 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/7529) in GitLab 12.8.
2020-03-13 15:44:24 +05:30
2021-03-08 18:12:59 +05:30
You can customize the email display name. Emails sent from Service Desk have
2020-03-13 15:44:24 +05:30
this name in the `From` header. The default display name is `GitLab Support Bot`.
2019-07-31 22:56:46 +05:30
2021-03-08 18:12:59 +05:30
To edit the custom email display name:
1. In a project, go to **Settings > General > Service Desk**.
1. Enter a new name in **Email display name**.
1. Select **Save Changes**.
### Using custom email address
2020-05-24 23:13:21 +05:30
2021-02-22 17:27:13 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/2201) in [GitLab Premium](https://about.gitlab.com/pricing/) 13.0.
2021-03-08 18:12:59 +05:30
> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/284656) in GitLab 13.8.
If the `service_desk_email` is configured, then you can create Service Desk
issues by sending emails to the Service Desk email address. The default
address has the following format:
2020-05-24 23:13:21 +05:30
`project_contact+%{key}@example.com`.
The `%{key}` part is used to find the project where the issue should be created. The
`%{key}` part combines the path to the project and configurable project name suffix:
`<project_full_path>-<project_name_suffix>`.
You can set the project name suffix in your project's Service Desk settings.
It can contain only lowercase letters (`a-z`), numbers (`0-9`), or underscores (`_`).
2021-03-08 18:12:59 +05:30
NOTE:
The `service_desk_email` and `incoming_email` configurations should
always use separate mailboxes. This is important, because emails picked from
`service_desk_email` mailbox are processed by a different worker and it would
not recognize `incoming_email` emails.
2020-05-24 23:13:21 +05:30
2021-03-08 18:12:59 +05:30
To configure a custom email address for Service Desk, add the following snippets to your configuration file:
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
- Example for installations from source:
2020-05-24 23:13:21 +05:30
2021-03-08 18:12:59 +05:30
```yaml
service_desk_email:
enabled: true
address: "project_contact+%{key}@example.com"
user: "project_support@example.com"
password: "[REDACTED]"
host: "imap.gmail.com"
port: 993
ssl: true
start_tls: false
log_path: "log/mailroom.log"
mailbox: "inbox"
idle_timeout: 60
expunge_deleted: true
```
2020-05-24 23:13:21 +05:30
2021-03-08 18:12:59 +05:30
- Example for Omnibus GitLab installations:
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
```ruby
gitlab_rails['service_desk_email_enabled'] = true
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_address'] = "project_contact+%{key}@gmail.com"
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_email'] = "project_support@gmail.com"
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_password'] = "[REDACTED]"
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_mailbox_name'] = "inbox"
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_idle_timeout'] = 60
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log"
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_host'] = "imap.gmail.com"
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_port'] = 993
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_ssl'] = true
2020-07-28 23:09:34 +05:30
2021-03-08 18:12:59 +05:30
gitlab_rails['service_desk_email_start_tls'] = false
```
2020-07-28 23:09:34 +05:30
2020-05-24 23:13:21 +05:30
In this case, suppose the `mygroup/myproject` project Service Desk settings has the project name
suffix set to `support`, and a user sends an email to `project_contact+mygroup-myproject-support@example.com`.
As a result, a new Service Desk issue is created from this email in the `mygroup/myproject` project.
2021-02-22 17:27:13 +05:30
The configuration options are the same as for configuring
[incoming email](../../administration/incoming_email.md#set-it-up).
2019-07-31 22:56:46 +05:30
## Using Service Desk
2021-03-08 18:12:59 +05:30
There are a few ways Service Desk can be used.
2019-07-31 22:56:46 +05:30
### As an end user (issue creator)
2020-05-24 23:13:21 +05:30
To create a Service Desk issue, an end user does not need to know anything about
2019-07-31 22:56:46 +05:30
the GitLab instance. They just send an email to the address they are given, and
receive an email back confirming receipt:
![Service Desk enabled](img/service_desk_confirmation_email.png)
This also gives the end user an option to unsubscribe.
If they don't choose to unsubscribe, then any new comments added to the issue
2021-03-08 18:12:59 +05:30
are sent as emails:
2019-07-31 22:56:46 +05:30
![Service Desk reply email](img/service_desk_reply.png)
2021-03-08 18:12:59 +05:30
Any responses they send via email are displayed in the issue itself.
2019-07-31 22:56:46 +05:30
### As a responder to the issue
2021-03-08 18:12:59 +05:30
For responders to the issue, everything works just like other GitLab issues.
GitLab displays a familiar-looking issue tracker where responders can see
issues created through customer support requests, and filter or interact with them.
2019-07-31 22:56:46 +05:30
![Service Desk Issue tracker](img/service_desk_issue_tracker.png)
2021-03-08 18:12:59 +05:30
Messages from the end user are shown as coming from the special
[Support Bot user](../../subscriptions/self_managed/index.md#billable-users).
You can read and write comments as you normally do in GitLab:
2019-07-31 22:56:46 +05:30
![Service Desk issue thread](img/service_desk_thread.png)
2019-12-04 20:38:33 +05:30
Note that:
- The project's visibility (private, internal, public) does not affect Service Desk.
2021-03-08 18:12:59 +05:30
- The path to the project, including its group or namespace, are shown in emails.
2019-07-31 22:56:46 +05:30
### Support Bot user
Behind the scenes, Service Desk works by the special Support Bot user creating issues. This user
does not count toward the license limit count.