# Automation script: Move topic on close

**URL:** https://meta.discourse.org/t/automation-script-move-topic-on-close/381559
**Category:** Plugin
**Tags:** automation
**Created:** [September 4, 2025, 10:36am UTC](https://meta.discourse.org/t/automation-script-move-topic-on-close/381559 "2025-09-04T10:36:55Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [September 4, 2025, 10:36am UTC](https://meta.discourse.org/t/automation-script-move-topic-on-close/381559/1 "2025-09-04T10:36:55Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | Moves a topic to another category when it gets closed |
| 🛠 | **Repository Link** | [GitHub - chapoi/move-topic-on-close: Automation script for Discourse · GitHub](https://github.com/chapoi/move-topic-on-close) |
| 📖 | **Install Guide** | [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

  

### Features

Simple script as an example on [Create custom Automations](https://meta.discourse.org/t/create-custom-automations/275931)

When a topic in category A is closed, it will be automatically moved to a predefined category B.

### Configuration

1. Requires [Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773) to be installed.
2. Enable the plugin:  
 ![CleanShot 2025-09-04 at 11.40.39@2x](https://global.discourse-cdn.com/meta/original/4X/7/5/5/755ca7c1ee839552718060b8d504aec49d7a2539.png)

### Settings

| Name | Description |
| --- | --- |
| Source category | Category where you will close topics |
| Target category | Category where you want to move topics to |

---

_[View the full topic](https://meta.discourse.org/t/automation-script-move-topic-on-close/381559)._
