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

Unable to create comments using JSD API as the Portal User reporter

      As a Portal user X, I'm unable to create a comment using the JSD API as per JSD-1505, only Agents seem able to do this. It seems only users with application access can use the API. Is it expected that Portal users (without groups, having only Customer role membership) don't have that application access and are therefore unable to use the API, bug?

      final ServiceDeskCommentCreateParameters publicComment =
          serviceDeskCommentService.newCreateBuilder()
                                   .author(user)
                                   .issue(customerRequest.getIssue())
                                   .publicComment(true)
                                   .body("This is a public comment")
                                   .build();
      serviceDeskCommentService.createServiceDeskComment(user, publicComment);
      

      The comment returned is null, there is an embedded error:

      You don't have permission to access this Service Desk.

      It feels like a bug because, as that same user via Portal I can add such comments.

      This is stopping me using the API to create 'guaranteed' Public vs Private comments for Customers / Agents.

          Form Name

            [JSDSERVER-3907] Unable to create comments using JSD API as the Portal User reporter

            Owen made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2304838 ] New: JAC Bug Workflow v3 [ 3125125 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 2058754 ] New: JSD Bug Workflow v5 - TEMP [ 2304838 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2056098 ] New: JSD Bug Workflow v5 [ 2058754 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 1955903 ] New: JSD Bug Workflow v5 - TEMP [ 2056098 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v4 [ 1615410 ] New: JSD Bug Workflow v5 [ 1955903 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels New: affects-server
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v2 [ 1602056 ] New: JSD Bug Workflow v4 [ 1615410 ]
            Owen made changes -
            Workflow Original: JSD Bug Workflow [ 1404617 ] New: JSD Bug Workflow v2 [ 1602056 ]
            Marty (Inactive) made changes -
            Component/s New: API and Integrations [ 35993 ]

            Andy Brook added a comment -

            Unfortunately the comment service doesn't currently expose a way to create comments without firing an event (triggering a JSD email) so even though we've figure out how to use the API, we can't actually use it yet

            Andy Brook added a comment - Unfortunately the comment service doesn't currently expose a way to create comments without firing an event (triggering a JSD email) so even though we've figure out how to use the API, we can't actually use it yet

              Unassigned Unassigned
              cd3cc7134331 Andy Brook
              Affected customers:
              2 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: