itemViews

Contents

This query allows administrators to track user’s views of items in Shibumi. The following actions count as a view:

  • Viewing a dashboard
  • Viewing any slide of a presentation
  • Viewing any tab of a work item

The following actions do not count as views:

  • Viewing work item data as part of a list or view
  • Previewing a work item, dashboard, or presentation

This query is only accessible to Shibumi enterprise administrators. Other users will receive an error when attempting to run this query.

Results are sorted by view time, with the most recent view returned first.

Query

itemViews (Connection to ItemView)
Look up recent item views. This query has a maximum page size of 100 items.

Argument Type Description
earliest String Only fetch views after this date / time. See Date Values for the expected format.
latest String Only fetch views before this date / time. See Date Values for the expected format.
first Int! See Pagination.
after String See Pagination.

Example

{
  itemViews(first: 100) {
    nodes {
      user {
        name
      }
      subjectUrl
      viewedAt
    }
  }
}
{
  "data": {
    "itemViews": {
      "nodes": [
        {
          "subjectUrl": "https://app.shibumi.com/shibumi/12345678-1234-1234-1234-123456789012/workItem-summary?id=12345678-1234-1234-1234-123456789012",
          "user": {
            "name": "John Watson"
          },
          "viewedAt": "2019-08-26T20:32:02.515Z"
        },
        {
          "subjectUrl": "https://app.shibumi.com/shibumi/12345678-1234-1234-1234-123456789012/workItem-summary?id=12345678-1234-1234-1234-123456789012",
          "user": {
            "name": "John Watson"
          },
          "viewedAt": "2019-08-26T20:32:02.515Z"
        }
      ]
    }
  }
}
Updated on September 9, 2025

Related Articles