Last updated

The last updated column represents when an item was last updated. Our API partially supports the last updated column, so you can read and filter it but cannot update or clear it via the API.

Filtering the last updated column

Using the items_page object, you can easily filter a board's items by specific columns or column values. The last updated column supports the any_of and not_any_of operators. It accepts "assigned_to_me" (returns items assigned to the logged-in user) or a user ID as a string (e.g."person-123456") as the compare_value.

👍

Pro tip

items_page is only available in API version 2023-10 and later.

Examples

The following example returns all items on the specified board with that were last updated by user 123456.

query {
  boards (ids: 1234567890) {
    items_page (query_params: {rules: [{column_id: "last_updated", compare_value: ["person-123456"], operator:any_of}]}) {
      items {
        id
        name
      }
    }
  }
}

Reading the last updated column

You can query the last updated column using the column_values object. The object has different fields based on which API version you are using. Column values v2 fields will be available in API versions 2023-10 and later, while column values v1 fields are only supported in versions 2023-07 and 2023-04.

Column values v2

The column_values object enables you to return column-specific subfields by sending a fragment in your query. Values for the last updated column are of the LastUpdatedValue type.

👍

Pro tip

column_values v2 fields are only available in API version 2023-10.

query {
  items (ids:[1234567890, 9876543210]) {
    column_values {
      ... on LastUpdatedValue {
        updated_at
        value
      }
    }
  }
}

Fields

FieldDescription
column Column!The column the value belongs to.
id ID!The column's unique identifier.
text StringThe column's value as text.
type ColumnType!The column's type.
updated_at DateThe column's last updated date.
updater User!The user who last updated the item.
updater_id ID!The unique identifier of the user who last updated the item.
value JSONThe column's JSON-formatted raw value.

Column values v1

You can return the data in a last updated column in just one format when you query by column values. The text field will return the date and time the column was last updated as a simple string. The value field will return null.

🚧

Removing column values v1 support

column_values v1 fields will no longer be supported in API versions 2023-10 and later.

{
  "text": "2023-01-01 12:00:00 UTC",
  "value": null
}

📘

Join our developer community!

We've created a community specifically for our devs where you can search through previous topics to find solutions, ask new questions, hear about new features and updates, and learn tips and tricks from other devs. Come join in on the fun! 😎