Service Desk is active on all projects by default. How can I change the default?


I’m running a self hosted installation via docker (using image gitlab/gitlab-ee:15.6.2-ee.0) and yesterday I enabled the incoming_email feature because on one of our projects we would like to enable the service desk.

In my docker-coompose.yml file I added this to GITLAB_OMNIBUS_CONFIG:

gitlab_rails['incoming_email_enabled'] = true
gitlab_rails['incoming_email_address'] = "servicedesk+%{key}"
gitlab_rails['incoming_email_email'] = ""
gitlab_rails['incoming_email_password'] = "[REDACTED]"
gitlab_rails['incoming_email_host'] = ""
gitlab_rails['incoming_email_port'] = 993
gitlab_rails['incoming_email_ssl'] = true
gitlab_rails['incoming_email_start_tls'] = false

gitlab_rails['incoming_email_mailbox_name'] = "inbox"
gitlab_rails['incoming_email_idle_timeout'] = 60
gitlab_rails['incoming_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log"
gitlab_rails['incoming_email_expunge_deleted'] = true

After a restart I logged in on the settings of the project where I need the service desk. I could see that the service desk was activated and I could select the template and email display name. It’s working, I was able to send and email and create an issue and responses in the issue yielded emails to the user.

But then I looked in other projects and I realized that the service desk is actually activated in all other projects. At the moment I would want to activatee the service desk in a single project and I don’t want to go the settings of every single projects and deactivate it manually.

I could write a script that deactivate the service desk for all projects but one via the restAPI. But when someone creates a new projects, it will be activated by default (I tested it, I created a new test project) and I would like it to remain deactivated.

Is there a way to change the default behaviour on this? Am I missing something?