# Cannot watch multiple tags using slash command

**URL:** https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653
**Category:** Support
**Tags:** chat-integration
**Created:** [April 8, 2017, 5:12pm UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653 "2017-04-08T17:12:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [April 8, 2017, 5:12pm UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/1 "2017-04-08T17:12:34Z")

</div>

If you try to use the `/discourse` slash command to watch multiple tags with the official slack plugin, it doesn’t work.

After doing the following:

```plaintext
/discourse watch tag:foo
Watched tag foo

/discourse watch tag:bar
Watched tag bar

```

When you look in the admin page for the plugin, you can see that the channel is only subscribed to the `bar` tag.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [April 8, 2017, 11:44pm UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/2 "2017-04-08T23:44:50Z")

</div>

@vinothkannans I think we should support something like `tag:foo,bar,..`

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [April 9, 2017, 1:24am UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/3 "2017-04-09T01:24:55Z")

</div>

For categories, if I watch one, and then another, I now am watching the union of those two categories. I think it should work the same way for tags. So, for instance, in the example in the OP, I should now be watching both the `foo` and `bar` tags.

In addition to doing this for the sake of consistency with the UX for categories, consider this case:

User A uses some combination of slack commands to watch 7 particular tags in a given channel.

A month later, User B thinks the channel should also watch some 8th tag.

If they just do `/discourse watch tag:number8`, it’d be unfortunate if that silently destroyed the work of User A from a month before.

…

There should probably be a command to un(watch|follow|mute) tags and categories explicitly instead if you want to stop watching any of those first 7 tags.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 9, 2017, 3:45am UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/4 "2017-04-09T03:45:56Z")

</div>

Our current design makes zero sense if it is overwriting every time, as already pointed out, nobody would expect that once you watch a category all previous category watches are erased. Why would we allow that for tags?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [April 9, 2017, 7:39am UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/5 "2017-04-09T07:39:12Z")

</div>

@tgxworld that’s why I didn’t update tags [here](https://github.com/discourse/discourse-slack-official/pull/22/files#diff-b61ae67bc6a57a3decb8d15b832077f4R337). It will overwrite existing tags list while processing slack command. May be you missed it while merging. Shall I make PR? Or is there any other option or best practice?

Else particularly for slack commands we should do append behavior instead of updating.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [April 10, 2017, 9:46am UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/6 "2017-04-10T09:46:54Z")

</div>

Thanks @mcwumbly. Fixed with tests in

[https://github.com/discourse/discourse-slack-official/commit/d0f039b8f1436f085fbe792f2308e5d02c2f0eff](https://github.com/discourse/discourse-slack-official/commit/d0f039b8f1436f085fbe792f2308e5d02c2f0eff)

> [@vinothkannans](#):
>
> that’s why I didn’t update tags here. It will overwrite existing tags list while processing slack command.

I think you’re looking at the wrong spot. That comment in the link is referring to `DiscourseSlack::Slack.delete_filter` where it broke because it was only matching against tags and not the channel.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [April 19, 2017, 1:50pm UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/7 "2017-04-19T13:50:37Z")

</div>

Just tested this out and it’s working great, thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 19, 2017, 8:01pm UTC](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/8 "2017-04-19T20:01:40Z")

</div>


