Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
Severity 3 - Minor
-
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
- is related to
-
JSDCLOUD-6271 Unable to add Request Participants using their email address via REST API
- Closed
-
JSDECO-92 Loading...
- relates to
-
JSDCLOUD-6061 raiseOnBehalfOf field can accept email address instead of customer account id when creating issue via REST API
- Closed
-
HOT-83515 Loading...
-
COIN-1074 Loading...
-
SDECO-1075 Loading...