# Automatically move topic category after topic close

**URL:** https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570
**Category:** Feature
**Created:** [April 28, 2022, 3:07pm UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570 "2022-04-28T15:07:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Cozdabuch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cozdabuch/32/139120_2.png) [@Cozdabuch](https://meta.discourse.org/u/Cozdabuch)
#### Post date: [April 28, 2022, 3:07pm UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570/1 "2022-04-28T15:07:55Z")

</div>

Is there a way I don’t know of, or is it possible to build into category settings where upon topic close, the system moves the topic from it’s original category to a new category or sub-category?

In my use case it would eliminate a step in a specific user’s workflow in maintaining our Association’s monthly records. We create a topic in a specific category 1x monthly. Any topics in that category are set to auto close after 5 days. Right now, a specific user has to move the closed topic to an archive category.

If it is not possible to build into core settings, does anyone know how to write a script for the Automate Plugin that will watch for a topic in within a specific category ( lets say category 5), and when a topic closes in category 5, it moves it to category 6.

This could be useful for those using Discourse as a ticketing system moving a topic/ticket from the main category to the closed category upon the user (or system automatically) closing it.

---

<div class="post-metadata">

### Author: ![Cozdabuch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cozdabuch/32/139120_2.png) [@Cozdabuch](https://meta.discourse.org/u/Cozdabuch)
#### Post date: [April 28, 2022, 11:32pm UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570/2 "2022-04-28T23:32:12Z")

</div>

Also, is there a way the system can notify the author when a topic automatically closes??

---

<div class="post-metadata">

### Author: ![not-ethan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/not-ethan/32/282617_2.png) [@not-ethan](https://meta.discourse.org/u/not-ethan)
#### Post date: [April 29, 2022, 12:18am UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570/3 "2022-04-29T00:18:36Z")

</div>

I’m not sure so don’t quote me on this but I think you can do this with [Discourse-automation](https://meta.discourse.org/t/discourse-automation/195773).

---

<div class="post-metadata">

### Author: ![Cozdabuch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cozdabuch/32/139120_2.png) [@Cozdabuch](https://meta.discourse.org/u/Cozdabuch)
#### Post date: [April 29, 2022, 5:34am UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570/4 "2022-04-29T05:34:12Z")

</div>

It would be fantastic

---

<div class="post-metadata">

### Author: ![Oliver530](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@Oliver530](https://meta.discourse.org/u/Oliver530)
#### Post date: [July 12, 2022, 9:32am UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570/5 "2022-07-12T09:32:47Z")

</div>

Did it work with this plugin?

---

<div class="post-metadata">

### Author: ![patrickemin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickemin/32/520162_2.png) [@patrickemin](https://meta.discourse.org/u/patrickemin)
#### Post date: [August 22, 2024, 2:20pm UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570/6 "2024-08-22T14:20:36Z")

</div>

I was looking to do that with the automation plugin but it’s not possible.

---

<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:39am UTC](https://meta.discourse.org/t/automatically-move-topic-category-after-topic-close/225570/7 "2025-09-04T10:39:28Z")

</div>

I just made a custom automation script that does this:

> [@Automation script: Move topic on close](https://meta.discourse.org/t/automation-script-move-topic-on-close/381559):
>
> information_sourceSummary Moves a topic to another category when it gets closedhammer_and_wrenchRepository Link [GitHub - chapoi/move-topic-on-close: Automation script for Discourse](https://github.com/chapoi/move-topic-on-close)open_bookInstall 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 Requires [Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773) to be installed. E…

Would appreciate if someone tested it out, hope it doesn’t just works on my machine 😉 🤞
