slack-plugin icon indicating copy to clipboard operation
slack-plugin copied to clipboard

Updating slack-message with multiple channels only updates one channel

Open ilkka-ollakka opened this issue 5 years ago • 2 comments

Your checklist for this issue

  • [x] Jenkins version: 2.222.4

  • [x] Plugin version: 2.40

  • [x] OS: ubuntu 16.04 LTS

Description

When posting message to multiple channels ('channels: "#mychannel, #secondchannel") messages work as expected. But when return-value is stored to variable and using the update-message feature (channels: previous_message.channel_id, timestamp: previous_message.ts), only the first channel message gets updated.

ilkka-ollakka avatar Jun 05 '20 11:06 ilkka-ollakka

is it possible with curl to update messages across multiple channels?

timja avatar Jun 05 '20 12:06 timja

I haven't tested, not that familiar with slack API. Quickly checking the API it looks like it looks like you could just post message on one channel at a time, but either case if slack-plugin splits up the posts, I would expect to have array of channel_ids to update messages on return-object.

ilkka-ollakka avatar Jun 05 '20 13:06 ilkka-ollakka