REST API: HTML tags stripped out of ticket Description on creation
I am having an issue with the REST API where anchor tags are stripped of their attributes when creating a ticket via the REST API.
JSON body:
data:{"operation": {"details": {"description": "<a href=\"http:\/\/www.google.com\">TEST<\/a>","requester": "Example User","site": "Example Site","subject": "Title of the request.","account": "Example Account"}}}
Results in
- {
- "operation": {
- "result": {
- "status": "Success",
- "message": "Request updated successfully"
- },
- "details": {
- "workorderid": "130297",
- "requester": "Example User",
- "createdby": "AutomationAccount",
- "createdtime": "1493760455355",
- "duebytime": "-1",
- "responseduebytime": "-1",
- "fr_duetime": "-1",
- "respondedtime": "0",
- "resolvedtime": "0",
- "completedtime": "0",
- "shortdescription": "TEST",
- "timespentonreq": "0hrs 0min",
- "subject": "Title of the request.",
- "requesttemplate": "Default Request",
- "mode": "",
- "sla": "",
- "asset": "",
- "department": "General",
- "editorid": "null",
- "editing_status": "0",
- "is_catalog_template": "false",
- "site": "Main Site",
- "account": "Example Site",
- "isvipuser": "No",
- "category": "",
- "subcategory": "",
- "item": "",
- "technician": "",
- "technician_loginname": "-",
- "status": "Open",
- "priority": "",
- "approval_status": "",
- "closurecode": "",
- "closurecomments": "",
- "fcr": "false",
- "yettoreplycount": "",
- "group": "",
- "description": "<a>TEST</a>"
- }
- }
- }
New to ADSelfService Plus?