As you can see, I have a ChatOps command defined that, when I press a button, triggers an automation script that returns the user who pressed that button. Everything is working fine, however, this confirmation after pressing the button is completely unnecessary and I would like to remove it.
Is there any way to skip this confirmation?
Hi,
We have implemented a way to skip the confirmation of a custom command in the DataMiner Teams bot/ChatOps. More information can be found at dataminer.services change log | DataMiner Docs
Hi,
The confirmation cannot be skipped as how it is implemented right now.
What I do see is that you send a chat integration message below with an email address, right? You can put that in the confirmation instead of sending an extra notification by setting it as the response on the custom command instead.
Wkr
Thanks Jordy. Could you please provide an example of how I can add this information? I would need to confirm with the email of the person that clicked in that button
Here you’ll find 4 custom command examples with outputs: https://github.com/SkylineCommunications/ChatOps-Extensions/blob/main/CustomCommandExamples/README.md
I think the one named “Output an Adaptive Card with Buttons” will show you how to know who initiated the command.
Hi Andre,
I believe it is not possible to remove the confirmation:
DataMiner Teams bot: Run custom commands request confirmation
Hope it helps.
Thanks @Miguel
I believe it’s the opposite. It’s not possible for security reasons. Nevertheless, thanks for pointing me to an answer.
Think you mean *not possible
Hi Jordy,
Indeed, answer updated
Awesome!!