Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-3491

Creating a jira service desk project through the JIRA rest api doesn't create the Service Desk Context

    XMLWordPrintable

Details

    Description

      If I execute:

       curl -u admin:admin -X POST -d @submit.json http://localhost:2990/jira/rest/api/2/project -v -H "Content-Type: application/json"
      

      where submit.json contains:

      {
          "key": "EX2",
          "name": "Example2",
          "projectTypeKey": "service_desk",
          "description": "Example Project description",
          "lead": "admin",
          "url": "http://atlassian.com",
          "assigneeType": "PROJECT_LEAD"
      }

      The project is created however when I go to the project in the ui, I get a 500 in the browser and the following stack trace:

      java.lang.RuntimeException: java.lang.RuntimeException: This is a Service Desk project, but we were unable to load the Service Desk project context. It may be possible to fix this error by converting this project to a different project type, and then converting it back to Service Desk.
      	at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply(ScalaJavaInterOp.java:27)
      	at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$.outOfCustomerContext(CustomerContextUtil.scala:48)
      	at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil.outOfCustomerContext(CustomerContextUtil.scala)
      	at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:24)
      	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:164)
      	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:120)
      	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:112)
      	... 3 filtered
      	at com.atlassian.fastdev.AutoReloadFilter.doFilter(AutoReloadFilter.java:63)
      	... 55 filtered
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      

      This happens if I use rest or if I use the java api project creation.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6e09b0ca9c15 Daniel Wester
              Votes:
              6 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Backbone Issue Sync