This guide explains how to set up an automation that appends a ‘last edited by’ note to specific topics, showing when they were last modified and by whom.
Required user level: Administrator
The ‘Append last edited by’ automation is a useful tool for adding transparency to your documentation or policy topics. It automatically adds a note showing the last time a topic was edited and who made the changes. This feature uses local dates functionality, allowing users to see the edited date in their own timezone.
Here’s an example of how the ‘last edited by’ note appears:
This topic (and all of the official documentation topics) use this automation, so you will see the result of it at the bottom of this post.
Setting up the automation
To set up this automation, follow these steps:
- Navigate to your site’s Automation page
- Select the ‘Append last edited by’ script
- Configure the options as shown in the image below:
Configuration options
The automation offers the following configuration options:
- Trigger: The only available trigger is ‘After post cook’
- Category: Select a single category where you want this automation to apply
- Tags: Enter any tags you want the automation to apply to (optional)
- Trust Level: Set the minimum trust level for users whose topics will be eligible for the note
Note that you can only select one category per automation. If you need to apply this to multiple categories, you’ll need to create separate automations for each category.
How it works
Once set up, the automation will:
- Apply to all topics in the selected category (or with the specified tags)
- Only affect topics created by users at or above the set trust level
- Append the ‘last edited by’ note to eligible topics
- Update the note whenever the topic is edited
Here’s an example of how the note appears in a topic:
Additional information
This automation works well in conjunction with the ‘Last checked by’ automation, which provides additional review information. You can find more details about the ‘Last checked by’ automation in this guide.
Last edited by @hugh 2024-07-26T01:59:02Z
Last checked by @hugh 2024-07-26T01:59:06Z
Check document
Perform check on document: