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

Unable to create API issues with Portal Access users as the reporter

    XMLWordPrintable

Details

    Description

      Currently, it is not possible to create issues in JSD enabled projects through the IssueManager because it does not take account of the new Service Desk Customer - Portal Access security type, the same is true for all other security checks like comment, add attachments etc. The createIssueObject method below fails with a CreateException, indicating (for create) that the user does not have the CREATE_ISSUE permission:

      ComponentAccessor.getIssueManager().createIssueObject(anIssueObject.getReporterUser(), anIssueObject);
      

      The workaround I have applied is to modify the Projects Permission Scheme to add the Role Service Desk Customers for each related JIRA Permission thats required, and this works. The user involved does not start counting toward the JIRA user count (primary attribute of a JSD Portal User), and issues can be created and updated. But, there is then a scary error warning on the Service Desk admin screen:

      Two things:
      1. API issue creation with portal users as the issue reporter should just work, it doesn't.
      2. I'm not sure what ill effects there would be over the workaround of adding Service Desk Customers role in the permission scheme, comments regarding scary warning above?

      Attachments

        1. permission-scheme.png
          permission-scheme.png
          69 kB
        2. SD error 3.png
          SD error 3.png
          44 kB
        3. SD Portal access.png
          SD Portal access.png
          61 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cd3cc7134331 Andy Brook
              Votes:
              38 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:

                Backbone Issue Sync