This PR introduces a new action, st2.inquiry.respond, and an accompanying action-alias for use in chatops. With these, a user can respond to inquiries via chatops (though they will still have to put together the JSON payload themselves).
Usage
The action can certainly be used on its own or in a workflow, using the Inquiry ID and the response payload:
In addition, the provided action-alias makes it possible to call this action from Slack (or another chatops-capable application). The result template also provides a bit of feedback to the user on whether or not their response was accepted:
Currently, the UX isn't the greatest, since the user will have to manually construct the JSON payload within their chat program, but it's better than nothing for now.
Dependencies
Some st2 work needed to take place to prepare for this action, so this should not be merged before the below PRs are merged:
This PR introduces a new action,
st2.inquiry.respond
, and an accompanying action-alias for use in chatops. With these, a user can respond to inquiries via chatops (though they will still have to put together the JSON payload themselves).Usage
The action can certainly be used on its own or in a workflow, using the Inquiry ID and the response payload:
In addition, the provided action-alias makes it possible to call this action from Slack (or another chatops-capable application). The result template also provides a bit of feedback to the user on whether or not their response was accepted:
Dependencies
Some
st2
work needed to take place to prepare for this action, so this should not be merged before the below PRs are merged:st2.inquiry.respond
action)Documentation
I opened https://github.com/StackStorm/st2docs/pull/672 to explain the new action and action-alias in the Inquiries section, as well as to explain the masking behavior introduced in https://github.com/StackStorm/st2/pull/3868