# Simplify the collaborative creation of a new post in a thread

**URL:** https://meta.discourse.org/t/simplify-the-collaborative-creation-of-a-new-post-in-a-thread/271711
**Category:** Feature
**Created:** [July 15, 2023, 6:27am UTC](https://meta.discourse.org/t/simplify-the-collaborative-creation-of-a-new-post-in-a-thread/271711 "2023-07-15T06:27:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [July 15, 2023, 6:27am UTC](https://meta.discourse.org/t/simplify-the-collaborative-creation-of-a-new-post-in-a-thread/271711/1 "2023-07-15T06:27:55Z")

</div>

I find our core group repeating the following workflow pattern:

- create a wiki-post inside a thread to prepare a new topic
- work on it, keep the discussion in the same thread
- move it to a new topic in a different category when ready

While working on it, we write the proposed title for the topic in the first row of the wiki-post as a H1 header:

```plaintext
# new Title

new content

```

The “move step” is a little tedious:

- edit the wiki to remove the new heading, keep the title in copy paste memory
- select the post to be moved to another topic
- paste the heading
- choose category
- publish

I’m dreaming of a simplified workflow

- select “publish to new thread” from the wrench menu of the post
- choose category
- publish

which would remove the first topic line and choose its value as the preset for a new topic automatically.

Would such behaviour be realizable by a theme component?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [July 15, 2023, 6:55am UTC](https://meta.discourse.org/t/simplify-the-collaborative-creation-of-a-new-post-in-a-thread/271711/2 "2023-07-15T06:55:06Z")

</div>

This seems similar to [shared drafts](https://meta.discourse.org/t/shared-drafts-allow-staff-to-collaborate-on-posts-before-publishing/83493).

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [July 15, 2023, 10:44am UTC](https://meta.discourse.org/t/simplify-the-collaborative-creation-of-a-new-post-in-a-thread/271711/3 "2023-07-15T10:44:49Z")

</div>

I think it’s perfectly fine. This only needs to send two ajax requests, one to get the original text, and one to process the content and post it as a post.

Wait a minute, I’ll give a critical part of the code

```javascript
const post_id = 1327039; // You should do some operations before to get the desired post id

$.ajax(`/posts/${post_id}/raw.json`).then(res => {
  const [text, title, raw] = res.match(/\s*#\s+([^\n]+)([\s\S]*)/);
  $.ajax("/posts.json", {
    type: "POST",
    data: {
      raw,
      title,
      category: YOUR_CATEGORY_ID,
    },
  });
});

```

Building a good-looking and easy-to-use front end should be the most difficult part of this theme component
