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

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 is unique in that you don't actually need the column on your board to filter results by its data. You can do so by sending "__last_updated__" as the column_id (see example below) and creating the other rules as you normally would.

Whether or not you actually have the column on the board, you can filter the last updated column by the user who last updated an item or the date it was last updated. It's important to note that the results are based on the timezone, date, and week settings configured in the monday.com profile of the user who made the call.

The table below contains the last updated column's supported operators and compare values.

Compare valuesDescriptionOperators
"assigned_to_me"Items that were last updated by the user who made the API call.- any_of: returns items last updated by the user who made the API call
- not_any_of: returns items that were not lsat updated by the user who made the API call
Specific user IDs (e.g., "person-123456"Items that were last updated by a specific user. - any_of: returns items last updated by the specified user
- not_any_of: returns items that were not last updated by the specified user
"TODAY"Used in conjunction with the "UPDATED_AT" compare attribute, this compare value returns items that were last updated on today's date. - any_of: returns items last updated on today's date
- not_any_of: returns items last updated on a date that is not today
"YESTERDAY"Used in conjunction with the "UPDATED_AT" compare attribute, this compare value returns items that were last updated on yesterday's date. - any_of: returns items last updated on yesterday's date
- not_any_of: returns items last updated on a date that is not yesterday
"THIS_WEEK"Used in conjunction with the "UPDATED_AT" compare attribute, this compare value returns items that were last updated on a date during the current week. The first day of the week (either Sunday or Monday) is defined based on the settings configured in the monday.com account of the person making the API call.- any_of: returns items last updated on a date during the current week
- not_any_of: returns items last updated on a date that is not during the current week
"LAST_WEEK"Used in conjunction with the "UPDATED_AT" compare attribute, this compare value returns items that were last updated on a date during the previous week. The first day of the week (either Sunday or Monday) is defined based on the settings configured in the monday.com account of the person making the API call.- any_of: returns items last updated on a date during the previous week

- not_any_of: returns items last updated on a date that is not during the previous week
"THIS_MONTH"Used in conjunction with the "UPDATED_AT" compare attribute, this compare value returns items that were last updated on a date during the current month.- any_of: returns items last updated on a date during the current month
- not_any_of: returns items last updated on a date that is not during the current month
"LAST_MONTH"Used in conjunction with the "UPDATED_AT" compare attribute, this compare value returns items that were last updated on a date during the previous month. - any_of: returns items last updated on a date during the previous month
- not_any_of: returns items last updated on a date that is not during the previous month
"PAST_DATETIME"Used in conjunction with the "UPDATED_AT" compare attribute, this compare value returns items that were last updated in the past. Since the last updated column only supports dates in the past, this will return all items. - any_of: returns items last updated in the past

Examples

The following example returns all items on the specified board that were last updated on today's date, even though there is no last updated column on the board.

query {
  boards(ids: 1234567890) {
    items_page (query_params: {rules: [{column_id: "__last_updated__", compare_value: ["TODAY"], operator:any_of, compare_attribute:"UPDATED_AT"}]}) {
      items {
        id
        name
      }
    }
  }
}

The following example returns all items on the specified board 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 that 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.

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.

πŸ“˜

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! 😎