Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article you will learn how to retrieve and create Worklog for tickets using the REST API.

GET/ Worklog

To retrieve the existing Worklog information, you need to specify the required parameters in Swagger. To learn how to retrieve information using GET method, refer to Incident Controller

POST/ Worklog

To create a new worklog, perform the following:

  1. Click POST to create information.
  2. Specify the following details in the Parameters section.:
      - ISM application URL
      - User authtoken
      - Slice token
      - Web service user name and password
  3. Click the Example Value text box. The operations displayed in the text box will be copied to the Worklog text box.
  4. Click Try it out to view the response.
    The following information is displayed in the Example Value box.

Valid Attribute

{
"ClientViewable": "string",
"CreationTimestamp": "string",
"CreationUserID": "string",
"CreationUserName": "string",
"LastModTimestamp": "string",
"LastModUserID": "string",
"LastModUserName": "string",
"Text": "string",
"TicketID": "string",
"TicketIdentifier": "string",
"TicketType": "string",
"TimeSpent": "string",
"WorklogActualDate": "string",
"WorklogType": "string",
"WorklogTypeCode": "string",
"communicationSendCC": "string",
"communicationSendTo": "string",
"sendMail": "string"
}

...

Code Block
{ "Text": "Updated ticket",
  "TicketIdentifier": "100-291",
  "WorklogType": "Update"
}

Sample Response


Code Block
languagetext
{  
    "data": "Success",
    "error": null,
    "status": "CREATED"
}

Sample Worklog Updated in an ITSM system

Image Added