Unable to set up Email Channel: Email is currently used by another Service Management project

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

Users are not able to configure Email Request in Jira Service Desk. The following error message appears:

1 The email address you entered is currently used by another service project. Please choose another email address. Check out our troubleshooting docs for help resolving the issue.
(Auto-migrated image: description temporarily unavailable)

Diagnosis

Diagnostic Steps

  • Check if there is an existing project that is currently using that email address

  • If there is none, you can then check further if you are affected by this problem.

Cause

The email address is somehow not deleted from the database properly when the corresponding project is removed.

Solution

Resolution

Remove the "residue" of the problematic email address from the database.

  1. Run the following query to find the deleted project that contains problematic email address. If it returns any result, you can use below resolution.

    1 select * from "AO_54307E_VIEWPORT" where "PROJECT_ID" not in (select id from project);
  2. Check all email addresses in the database.

    1 select * from "AO_2C4E5C_MAILCONNECTION";
  3. Backup the database before proceeding with below steps.

  4. Bring down Jira and run below queries.

    1 delete from "AO_2C4E5C_MAILHANDLER" where "MAIL_CHANNEL_ID" in (select "ID" from "AO_2C4E5C_MAILCHANNEL" where "PROJECT_ID" not in (select id from project));
    1 delete from "AO_2C4E5C_MAILCHANNEL" where "PROJECT_ID" not in (select id from project);
    1 delete from "AO_2C4E5C_MAILCONNECTION" where "ID" not in (select "MAIL_CONNECTION_ID" from "AO_2C4E5C_MAILCHANNEL");
    1 delete from "AO_54307E_EMAILCHANNELSETTING" where "SERVICE_DESK_ID" in (select "ID" from "AO_54307E_SERVICEDESK" where "PROJECT_ID" not in (select id from project));
  5. Bring up Jira.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.