# ユーザー間のトピックの一括再割り当て

**URL:** https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337
**Category:** Support
**Tags:** assign
**Created:** [2019 年 12 月 17 日午後 6:48 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337 "2019-12-17T18:48:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2019 年 12 月 17 日午後 6:48 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337/1 "2019-12-17T18:48:04Z")

</div>

スタッフの異動に伴い、トピックやメッセージをあるユーザーから別のユーザーへ一括で再割り当てする方法（rake タスクやコマンドラインでのデータベースクエリでも構いません）をご教示いただければ幸いです。これは当コミュニティで頻繁に必要となる要件です。現在、約100件のトピックが割り当てられたユーザーがおり、これを他者に引き継ぐ必要があります。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019 年 12 月 17 日午後 8:35 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337/2 "2019-12-17T20:35:05Z")

</div>

試行錯誤するために割り当てた事例はありません。もし切実で予算があるなら、お手伝いできます。

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2019 年 12 月 17 日午後 9:25 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337/3 "2019-12-17T21:25:28Z")

</div>

残念ながら予算がありません。でも、お申し出はありがとうございます。このリストを一つずつ処理していくことにします。

この状況は定期的に発生しますが、いつも何か簡単な解決策があればいいなと思っています。しかし、結局のところ、時間を少し取ってチケットを確認し、クローズするか、他の担当者に割り当てるのが最も良い方法です。

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [2019 年 12 月 17 日午後 10:23 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337/4 "2019-12-17T22:23:06Z")

</div>

```plaintext
### 投稿の所有権を変更
rake users:change_post_ownership["old","new"]
rake users:change_post_ownership["old","new",private]

```

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2019 年 12 月 17 日午後 10:24 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337/5 "2019-12-17T22:24:17Z")

</div>

@omarfilip さん、ありがとうございます！その rake タスクは投稿の著者を変更するのでしょうか、それとも担当者を割り当てるのでしょうか？

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [2019 年 12 月 17 日午後 10:26 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337/6 "2019-12-17T22:26:06Z")

</div>

ああ、質問を誤解していたかもしれません。上記は投稿者向けのもので、アサインメントではありません。🙁

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023 年 10 月 6 日午後 7:10 UTC](https://meta.discourse.org/t/bulk-reassign-topics-from-one-user-to-another/136337/7 "2023-10-06T19:10:36Z")

</div>


