This documentation supports the 20.02 version of Remedy IT Service Management Suite.

To view an earlier version, select the version from the Product version menu.

Example of using the REST API to retrieve work information related to an incident


To retrieve work information related to an incident, use the HPD:Help Desk form to get the HPD:INC:Worklog. To get the details of all the associations, you retrieve the Entry ID for the corresponding incident on the HPD:Help Desk form and then retrieve the associations related to the work information, that is the HPD:INC:Worklog.

To retrieve the entry for an Incident number 

The following video (6.25) demonstrates how to use the Postman REST API client to search for an entry.

 https://youtu.be/lhch-GTW51U

The video was recorded using an earlier version of Remedy AR System and is valid for Remedy AR System 9.and later versions.

Use the following steps to get the Entry ID for a corresponding incident, from the HPD:Help Desk form.

  1. Open the Postman - REST Client.
  2. Create a token. 
  3. Set the Request URL as http://serverName/api/arsys/v1/entry/HPD:Help Desk.
  4. Click URL Params.
  5. Add a parameter q to search for incident number. Ensure value for the parameter is encoded properly. (See  https://www.w3schools.com/html/html_urlencode.asp Open link .) 
    For example, after adding qualification based on “Incident Number” field, URL should look something like this:

    http://serverName/api/arsys/v1/entry/HPD:Help Desk?q=%27Incident+Number%27+%3D+%22INC000000000701%22

  6. Select the operation as GET.
  7. Click Headers.
  8. Enter the following data as key value pair in the header:

    KeyValue
    AuthorizationAR-JWT <token generated>
    Content-Typeapplication/json
  9. Click Send.
    The plugin returns a URL in the Location section for the related entry, for example:

    "_links": {
        "self": [
            {
                "href": "http://<server-name>/api/arsys/v1/entry/HPD:Help%20Desk/INC000000000604"
             }
        ]
    }

To retrieve the Work Info Logs associated for an Incident number

The following video (5:14) describes how to use the Postman REST API client to get related entries using associations..

 https://youtu.be/YCJU1tgy8kA

The video was recorded using an earlier version of Remedy AR System and is valid for Remedy AR System 9.and later versions.

Use the following steps to retrieve all the related work information logs for the incident:

  1. Open the Postman - REST Client.
  2. Create a token. 
  3. Set the Request URL returned in the previous procedure, for example:
    http://serverName/api/arsys/v1/entry/HPD:Help%20Desk/INC000000000604
  4. Select the operation as GET.
  5. Click Headers.
  6. Enter the following data as key value pair in the header:

    KeyValue
    AuthorizationAR-JWT <token generated>
    Content-Typeapplication/json
  7. To fetch child entries via association such as Work Info Logs in our case, provide additional request parameters to include association name (can be found from dev studio) using URL parameter “fields”. For example, fields=assoc(HPD:INC:Worklog).

  8. Click Send.
    The plugin returns a URL in the Location section to all related work information logs that are related to the corresponding incident, for example:

    Request URL
    http://<server name>/api/arsys/v1/entry/HPD:Help%20Desk/INC000000000027?fields=assoc(HPD:INC:Worklog)
     "_links": {        
    	"self": [
            {
                    "href": "http://<server_name>/api/arsys/v1/entry/HPD:Help%20Desk/INC000000000604"
                }
            ],
            "assoc-HPD:INC:Worklog": [
                {
                    "href": "http://<server_name>/api/arsys/v1/entry/HPD:WorkLog/WLG000000000602"
                },
                {
                    "href": "http://<server_name>/api/arsys/v1/entry/HPD:WorkLog/WLG000000000603"
                }
            ]
        }

Was this page helpful? Yes No Submitting... Thank you

Comments

  1. Connor Jenkins

    Is there a way to retrieve any Task references that have been raised within an Incident and also then to retrieve work logs from that task?

    So for example INC000123 has been raised and within that incident an Ad Hoc task TAS000123 has been raised within it.

    Apr 24, 2023 08:03
    1. Vignesh Kannan

      Hello Connor Jenkins,
      Thank you for your comment!

      You can use INT:HPDTMS:INC:Tasks instead of HPD:INC:Worklog to retrieve the associated task. To get the task associated with an Incident, use the following URL:
      https://pv04-is.pun-ranch.bmc.com/api/arsys/v1/entry/HPD:Help%20Desk/INC000000000010?fields=assoc(INT:HPDTMS:INC:Tasks)

      Regards,

      Vignesh K

      Apr 28, 2023 12:04