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

Service Desk API won't create tickets on behalf of existing customers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • Forge and Connect
    • None

    Description

      Summary

      Service Desk agents are unable to create tickets on behalf of existing customers via Service Desk REST API.

      The JIRA Service Desk API expects the customer's username on the "raiseOnBehalfOf" parameter, however, due to a recent change on the Portal Only accounts, the customer's username no longer matches the user's email address, which is commonly used as the value of "raiseOnBehalfOf".

      Environment

      This bug mainly affects users who have set their own web form to create tickets on JIRA Service Desk via API.

      Steps to Reproduce

      1 - Create Service Desk request using the command below. Replace the IDs accordingly:

      curl -D- --request POST \
        --user agent@domain.com:<API_Token> \
        --header 'Accept: application/json' \
        --header 'Content-Type: application/json' \
        --data '
          {
            "serviceDeskId": "sd-id",
            "requestTypeId": "requestypeid",
            "raiseOnBehalfOf": "inexisten-address@domain.com",
            "requestFieldValues": {
              "summary": "Request JSD help via REST",
              "description": "I need a new *mouse* for my Mac"
            }
                }' \
        --url 'https://site.atlassian.net/rest/servicedeskapi/request'

      2 - Repeat the same command.

      Expected Results

      You'll have two tickets created on your Service Desk.

      Actual Results

      The first call will create both the customer account and the Service Desk request, while the second call will return the following error:

      {"errorMessage":"Your request could not be created. Please check the fields have been correctly filled in. Please provide a valid value for field 'Raise this request on behalf of'","i18nErrorMessage":{"i18nKey":"sd.validation.request.creation.failure.required.field","parameters":["Please provide a valid value for field 'Raise this request on behalf of'"]}} 

      Notes

      At the moment, this only affects new Service Desk customers whose usernames are stored in a "hash" format. Accounts that the username and email address match each other are not affected by the bug.

      Workaround

      None at the moment

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pjunior Paulo Junior (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: