Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-5042

Error when attempting to turn on Email Request if Email Request's Issue Type is Removed from Project Issue Type Scheme

    XMLWordPrintable

Details

    Description

      Summary

      If a Service Desk Project's Email Requests are enabled, and the Issue Type linked to the Request Type is removed from the project's Issue Type Scheme, an error will be thrown upon visiting the Email Requests page and attempting to Turn on email requests. This error will only be thrown if there is another Request Type availabe that is suitable for Email Requests.

      Environment

      • JSD v3.3.0-OD-1000.36.0
      • JIRA v1000.184.1

      Steps to Reproduce

      1. Create a Service Desk Project
      2. Navigate to the Issue Types page within the project's Administration
      3. Remove the Issue Type associated with the Email Requests Request Type
      4. Navigate to the Email Requests page, click "Turn on email requests"
      5. Observe error

      Expected Results

      Service Desk should gracefully choose the next available Request Type suitable for e-mail, or if none, provide an alert to create one.

      Actual Results

      The below error is thrown in a modal window:

      Error when turning on email
      This email address is not used by this service desk any more.
      

      And a 400 error is returned from /rest/servicedesk/1/servicedesk/<project key>/incomingemail/turnOnForOnDemand:

      {
          "errors": [{
              "errorMessage": "This email address is not used by this service desk any more."
          }
          ],
          "reasonKey": "com.atlassian.servicedesk.internal.feature.emailchannel.EmailChannelNotFound$",
          "reasonCode": "400"
      }
      

      Notes

      • This error doesn't occur when Email Requests are turned off prior to removing the issue type
      • This error doesn't occur if there is no other request type suitable for Email Requests

      Workaround

      1. Add the previously removed Issue Type back into the Service Desk Project's Issue Type Scheme
      2. On the Email Requests page, choose a different Request Type associated with a different Issue Type that is intended to be kept for the project
      3. Remove the Issue Type again if no longer needed.
      • Alternatively, Turn off Email Requests prior to removing any Issue Types from the project.

      Attachments

        Issue Links

          Activity

            People

              mwinsen Marty
              mgarcia@atlassian.com Marco Garcia (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: