Skip to main content

Work object mention element

This is a rich text element, compatible only with the rich_text block. It must be used within the rich_text_list, rich_text_quote, or rich_text_section block element within the rich_text block's elements array.

Fields

FieldTypeDescriptionRequired?
typeStringThe type of object; in this case, "work_object_mention".Required
entity_idStringThe ID of the Work Object entity.Required
app_idStringThe ID of the app associated with the Work Object.Required
textStringThe display text for the Work Object reference.Required
urlStringThe URL of the Work Object.Required
icon_urlStringOptional product icon URL for the Work Object.Optional
full_size_preview_enabledBooleanWhether the Work Object supports full size preview.Optional
product_nameStringThe product name for the Work Object. Used to determine per-product click behavior preferences.Optional
styleObjectAn object of optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, unlink, and underline.Optional

Example

{
"blocks": [
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "work_object_mention",
"entity_id": "E123ABC456",
"app_id": "A123ABC456",
"text": "Work object",
"url": "https://example.com/work-object"
}
]
}
]
}
]
}

View in Block Kit Builder