Scoped Tags

-"Flags & Tagging"


Scoped tags use special markup to limit assignment to only one tag in the scope, and can be a useful tool in creating workflows in Drafts.

Scoped tags are in the format prefix::tag. Drafts will automatically limit any single draft to having only one tag with the scoped prefix assigned at a time. For example, if a draft is tagged status::new, and you assign it the tag status::in-progress, the status::new tag will be removed from the draft. This applies whether the tag was assigned via the user interface, automatically by an action, or even in scripts.

To create a scoped tag, simply assign a tag with the :: (two colon) separator. A couple example use cases:

NOTE

When filtering with workspaces, you can filter by scope prefix, so, for example, a workspace with the tag filter status:: would find any drafts with any of the scope’s subtags assigned, like status::new or status::complete.

status::dev