2020-05-26 23:08:26 -04:00
---
stage: Plan
group: Certify
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/#designated-technical-writers
---
2020-05-07 02:09:38 -04:00
# Service Desk **(STARTER)**
2019-05-05 11:37:18 -04:00
2020-05-25 11:07:58 -04:00
> - [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.
2019-05-05 11:37:18 -04:00
## Overview
Service Desk is a module that allows your team to connect directly
with any external party through email right inside of GitLab; no external tools required.
An ongoing conversation right where your software is built ensures that user feedback ends
up directly where it's needed, helping you build the right features to solve your users'
real problems.
With Service Desk, you can provide efficient email support to your customers, who can now
email you bug reports, feature requests, or general feedback that will all end up in your
GitLab project as new issues. In turn, your team can respond straight from the project.
As Service Desk is built right into GitLab itself, the complexity and inefficiencies
of multiple tools and external integrations are eliminated, significantly shortening
the cycle time from feedback to software update.
2019-10-16 11:06:17 -04:00
For an overview, check the video demonstration on [GitLab Service Desk ](https://about.gitlab.com/blog/2017/05/09/demo-service-desk/ ).
2019-05-05 11:37:18 -04:00
## Use cases
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-03-26 23:07:56 -04:00
with GitLab CI/CD.
2019-05-05 11:37:18 -04:00
Here's how Service Desk will work for you:
2020-05-25 11:07:58 -04:00
1. You provide a project-specific email address to your paying customers, who can email you directly
from within the app.
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.
1. The customer will have been attended successfully via email, without having real access to your
GitLab instance.
1. Your team saved time by not having to leave GitLab (or setup any integrations) to follow up with
your customer.
2019-05-05 11:37:18 -04:00
## How it works
GitLab Service Desk is a simple way to allow 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,
and replies can be sent either through the GitLab interface or by email. End
users will only see the thread through email.
## Configuring Service Desk
2019-12-26 19:08:02 -05:00
NOTE: **Note:**
Service Desk is enabled on GitLab.com. If you're a [Silver subscriber ](https://about.gitlab.com/pricing/#gitlab-com ),
you can skip step 1 below; you only need to enable it per project.
If you have the correct access and a Premium license, you have the option to set up Service Desk.
Follow these steps to do so:
1. [Set up incoming email ](../../administration/incoming_email.md#set-it-up ) for the GitLab instance.
2020-06-03 14:08:28 -04:00
- 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 ).
2019-12-26 19:08:02 -05:00
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
to the project. These issues will be [confidential ](issues/confidential_issues.md ), so they will
only be visible to project members. Note that in GitLab 11.7, we updated the generated email
address's format. The older format is still supported, however, allowing existing aliases or
contacts to continue working.
DANGER: **Danger:**
This email address can be used by anyone to create an issue on this project, whether or not they
have access to your GitLab instance. We recommend **putting this behind an alias** so it can be
changed if needed, and ** [enabling Akismet ](../../integration/akismet.md )** on your GitLab
instance to add spam checking to this service. Unblocked email spam would result in many spam
2020-01-21 10:08:26 -05:00
issues being created.
2019-05-05 11:37:18 -04:00
2019-12-26 19:08:02 -05:00
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-05-05 11:37:18 -04:00
2019-12-26 19:08:02 -05:00
![Service Desk enabled ](img/service_desk_enabled.png )
2019-12-02 16:06:51 -05:00
2019-12-26 19:08:02 -05:00
Service Desk is now enabled for this project! You should be able to access it from your project
navigation's **Issues** menu.
2019-05-05 11:37:18 -04:00
2019-12-26 19:08:02 -05:00
![Service Desk Navigation Item ](img/service_desk_nav_item.png )
2019-05-05 11:37:18 -04:00
2020-01-13 07:08:04 -05:00
### Using customized email templates
2020-05-21 23:08:28 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/2460) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.7.
2020-01-13 07:08:04 -05:00
When a user submits a new issue using Service Desk, or when a new note is created on a Service Desk issue, an email is sent to the author.
The body of these email messages can customized by using templates. To create a new customized template,
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.
The file name of the template has to be `thank_you.md` .
2020-04-28 08:09:44 -04:00
You can use `%{ISSUE_ID}` placeholder which will be replaced by an issue IID in the email and
`%{ISSUE_PATH}` placeholder which will be replaced by project path and the issue IID.
2020-01-13 07:08:04 -05:00
As the service desk issues are created as confidential (only project members can see them)
2020-04-28 08:09:44 -04:00
the response email does not provide the issue link.
2020-01-13 07:08:04 -05:00
#### New note email
The **New note email** is the email sent to a user when the issue they submitted has a new comment.
The file name of the template has to be `new_note.md` .
2020-04-28 08:09:44 -04:00
You can use `%{ISSUE_ID}` placeholder which will be replaced by an issue IID
2020-01-13 07:08:04 -05:00
in the email, `%{ISSUE_PATH}` placeholder which will be replaced by
2020-04-28 08:09:44 -04:00
project path and the issue IID and `%{NOTE_TEXT}` placeholder which will be replaced by the note text.
2020-01-13 07:08:04 -05:00
2020-02-06 22:08:59 -05:00
### Using custom email display name
2020-05-21 23:08:28 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/7529) in GitLab 12.8.
2020-02-10 01:09:14 -05:00
2020-02-06 22:08:59 -05:00
You can customize the email display name. Emails sent from Service Desk will have
this name in the `From` header. The default display name is `GitLab Support Bot` .
2020-04-28 08:09:44 -04:00
### Using custom email address
2020-05-21 23:08:28 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/2201) in [GitLab Premium](https://about.gitlab.com/pricing/) 13.0.
2020-04-28 08:09:44 -04:00
NOTE: **Note:**
This feature is disabled by default. For steps to enable it, see [Enable custom email address ](#enable-custom-email-address ).
If the `service_desk_email` feature flag is enabled in your configuration,
then it's possible to create Service Desk issues by sending emails to the
custom Service Desk email address, which should have the following format:
`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 (`_`).
![Setting custom Service Desk email address ](img/service_desk_custom_email_address_v13_0.png )
For example, suppose you add the following to your configuration:
```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
2020-05-12 20:07:50 -04:00
expunge_deleted: true
2020-04-28 08:09:44 -04:00
```
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.
#### Enable custom email address
This feature comes with the `service_desk_email` feature flag disabled by default.
To turn on the feature, ask a GitLab administrator with Rails console access to run the following
command:
```ruby
2020-05-29 11:08:14 -04:00
Feature.enable(:service_desk_email)
2020-04-28 08:09:44 -04:00
```
The configuration options are the same as for configuring
[incoming email ](../../administration/incoming_email.md#set-it-up ).
2019-05-05 11:37:18 -04:00
## Using Service Desk
### As an end user (issue creator)
2020-04-28 08:09:44 -04:00
To create a Service Desk issue, an end user does not need to know anything about
2019-05-05 11:37:18 -04:00
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
will be sent as emails:
![Service Desk reply email ](img/service_desk_reply.png )
And any responses they send will be displayed in the issue itself.
### As a responder to the issue
2020-04-28 08:09:44 -04:00
For responders to the issue, everything works as usual. They will see a familiar looking
2019-05-05 11:37:18 -04:00
issue tracker, where they can see issues created via customer support requests and
filter and interact with them just like other GitLab issues.
![Service Desk Issue tracker ](img/service_desk_issue_tracker.png )
Messages from the end user will show as coming from the special Support Bot user, but apart from that,
you can read and write comments as you normally do:
![Service Desk issue thread ](img/service_desk_thread.png )
2019-09-18 10:02:45 -04:00
Note that:
- The project's visibility (private, internal, public) does not affect Service Desk.
- The path to the project, including its group or namespace, will be shown on emails.
2019-05-05 11:37:18 -04:00
### 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.