I’m working on an automation routine to create a daily log entry in a Notion-like system. The entry should include an @mention (for instance, something like @currentDay) in the title field. I want the title to reflect this special mention each day.
Below is my current code snippet:
let payload = {
parent: { dbID: 'yourDatabaseId' },
properties: {
name: {
type: 'text',
text: [
{
content: 'Daily log entry...', // How can I add an @mention here, e.g., @currentDay?
style: 'normal'
}
]
},
createdOn: new Date().toISOString()
}
};
Could someone explain the correct approach to include an @mention in the title? Any guidance or examples would be greatly appreciated.
i dont think u can directly embed @mentions in titles. notion only handles plain text there so u might need a workaround to simulate the effect, like adding the date manually.
After spending some time troubleshooting similar functionality, I’ve concluded that the current API and Notion interface do not support true @mentions in titles. In my experimenting with daily logs, I’ve found that using plain text with a preceding @ symbol is the only available option. The system treats it simply as part of the text rather than a special mention. As a workaround, I store real mentions or user references in other text fields that support rich text. This way, I can dynamically track daily updates without losing the functionality of true mentions.
I’ve worked with the Notion API for a while and found that the title field for database pages really restricts the content you can include. In experimenting with daily logs, I attempted to embed an interactive @mention in the title. Unfortunately, the system processes it as plain text only. My solution was to manage mentions within the page body where rich text is supported, linking them contextually to the title. This method maintains clarity and reusability, even though it means handling the reference in a separate field.
hey, i’ve tried and found that notion doesn’t hiccup @mentions in titles. they just appear as plain text. best shot is to use another field for dynamic mentions if you need real linkage. it’s a bit of a pain, i know.
Through extensive testing and review of the Notion API documentation, I have confirmed that the title field in a Notion page is inherently limited to plain text and does not support the native handling of @mentions. In my own work, I encountered similar constraints when trying to include dynamic elements within the title. The recommended approach involves keeping dynamic or interactive content in fields that fully support rich text. Relying on alternative fields not only preserves the functional behavior of mentions but also offers greater flexibility for later modifications.