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

Assets for JSM: Make Object Activity available as a Smart Value.

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      There are several use cases for accessing an Object's History in Automation:

      1. Alerting regarding important Attribute Changes such as via Send Email, Send Slack, etc.
      2. Working around the Object Trigger Update function's Limitation to check which Attribute was Updated
      3. Verifying Changes against policies or procedures
      4. Etc

      Suggested Solution

      Provide an activity or history Smart Value for an Object whenever relevant (such as for the Lookup Objects Action and the Object Trigger, etc) that allows access to the information shown in an Object's Activity tab. i.e. object.activity.first would return the first entry, so something like:

      {
        "actor": {
          "avatarUrl": "https://avatar.url/av",
          "displayName": "Big John",
          "name": "John Doe",
          "key": "112233aabbcc",
          "emailAddress": "john@doe.com",
          "isDeleted": false
        },
        "id": "321",
        "affectedAttribute": "Test Attribute",
        "oldValue": "",
        "newValue": "this is a value",
        "type": 1,
        "created": "2024-11-08T16:59:09.412Z",
        "objectId": "123"
      }
      

      Such that object.activity.first.newValue would return "this is a value" in that example.

      Jira Issues have something like this with the changelog Smart Value though that Smart Value has the added usage of specifying by Custom Field, which would be nice to have for activity, such as object.activity.Label to only check entries related to the Label for an Object, or object.activity.Attribute for any given Attribute.

      Workaround

      Use the Send Web Request Action to hit the Object History API Endpoint for Assets:

            [JSDCLOUD-15453] Assets for JSM: Make Object Activity available as a Smart Value.

            Hi 992127aa63ec - JSM Automation tickets should be logged in the JSM JAC project, as the JSM team owns any JSM-specific triggers and actions

            Charlie Gavey added a comment - Hi 992127aa63ec - JSM Automation tickets should be logged in the JSM JAC project, as the JSM team owns any JSM-specific triggers and actions

              Unassigned Unassigned
              992127aa63ec Payden Pringle
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: