I made it so that you can specify the dialog elements in configuration. Since Slack is pretty picky about the dialogs it accepts, I'm validating the key stuff and also only providing configuration for the elements.
Configuration looks like:
dialog:
- type: text
name: summary
label: "The one liner..."
placeholder: "A short summary of your question"
- type: textarea
name: description
label: "Details"
placeholder: "Anything you've tried so far, stack traces, etc (use JIRA syntax)"
- type: select
name: priority
label: "Currently blocked?"
value: "medium"
options:
- label: "No"
value: "medium"
- label: "Yes"
value: "high"
- label: "About to page someone!"
value: "highest"
I made it so that you can specify the dialog elements in configuration. Since Slack is pretty picky about the dialogs it accepts, I'm validating the key stuff and also only providing configuration for the elements.
Configuration looks like: