Creation log
The creation log column represents an item's creator and the date and time they created it. Our API partially supports the creation log column, so you can read and filter it but cannot update or clear it via the API.
Filtering the creation log column
Using the items_page
object, you can easily filter a board's items by specific columns or column values. The table below contains the creation log column's supported operators, compare values, and compare attributes.
Operators | Compare values | Compare attributes |
---|---|---|
any_of | The user IDs to filter by | "CREATED_BY" |
not_any_of | The user IDs to filter by | "CREATED_BY" |
Pro tip
items_page
is only available in API version2023-10
for now.
The following example returns all items on the specified board that were created by user 123456.
query {
boards (ids: 1234567890) {
items_page (query_params: {rules: [{column_id: "creation_log", compare_value: [123456], compare_attribute: "CREATED_BY", operator:any_of}]}) {
items {
id
name
}
}
}
}
Reading the creation log column
You can query the creation log 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 creation log column are of the CreationLogValue
type.
Pro tip
column_values
v2 fields are only available in API version2023-10
.
query {
items (ids:[1234567890, 9876543210]) {
column_values {
... on CreationLogValue {
created_at
creator
}
}
}
}
Fields
Field | Description |
---|---|
column Column! | The column the value belongs to. |
created_at Date! | The item's creation date. |
creator User! | The item's creator. |
creator_id ID! | The unique identifier of the item's creator. |
id ID! | The column's unique identifier. |
text String | The column's value as text. |
type ColumnType! | The column's type. |
value JSON | The column's JSON-formatted raw value. |
Column values v1
You can return the data in a creation log column in just one format when you query by column values. The text
field will return the date and time someone created an item as a simple string; this field does not show you who created the item. The value
field will return null.
Removing column values v1 support
colun_values
v1 fields will no longer be supported in API versions2023-10
and later.
{
"text": "2022-07-27 12:00:00 UTC",
"value": null
}
Since you can't query the creation log column to return the creator of an item, you can use a workaround and query your items directly for the creator.
query {
boards (ids:1234567890) {
items (ids:9876543210) {
creator {
name
}
}
}
}
let query = "query { boards (ids: 1234567890) { items (ids: 9876543210) { creator { name }}}}";
fetch ("https://api.monday.com/v2", {
method: 'post',
headers: {
'Content-Type': 'application/json',
'Authorization' : 'YOUR_API_KEY_HERE'
},
body: JSON.stringify({
query : query
})
})
.then(res => res.json())
.then(res => console.log(JSON.stringify(res, null, 2)));
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! 😎
Updated 3 months ago