Skip to content

Instantly share code, notes, and snippets.

@garthk
Last active October 17, 2019 01:16
Show Gist options
  • Save garthk/3ecf139c5beb954d0818ac2047ebeaf5 to your computer and use it in GitHub Desktop.
Save garthk/3ecf139c5beb954d0818ac2047ebeaf5 to your computer and use it in GitHub Desktop.
Basic Risk Register Workflow for Slack
{
"source_id": "271348857072267592",
"version": "1",
"workflow": {
"name": "Basic Risk Register",
"blueprint": {
"version": "1",
"trigger": {
"type": "channel_action",
"id": "8c3cf67c-2331-43b4-9f74-22092d0b17c2",
"config": {
"name": "Suggest → risk register",
"channels": [
"C137R7JJF"
],
"callback_id": "3e144913-454d-405a-8725-84a06fba5745",
"description": "Suggest → risk register"
}
},
"steps": [
{
"type": "dialog",
"id": "b706fe88-a902-42dc-8dc2-b45660da1d81",
"config": {
"dialog_title": "Basic Risk Register",
"dialog_elements": [
{
"name": "32f18556-d310-4248-b4c1-5ac812efe25c",
"type": "text",
"label": "What might turn out bad?",
"subtype": "",
"optional": false,
"placeholder": ""
},
{
"name": "f78c05d2-17a5-45cf-a5c7-99674d0c0b60",
"type": "select",
"label": "How bad?",
"value": "Hurt",
"options": [
{
"label": "Uncomfortable",
"value": "Uncomfortable"
},
{
"label": "Hurt",
"value": "Hurt"
},
{
"label": "Injured",
"value": "Injured"
},
{
"label": "Disabled",
"value": "Disabled"
},
{
"label": "Dead",
"value": "Dead"
}
],
"optional": false,
"data_source": "static"
},
{
"name": "0ee2a834-046c-4d1d-b0a0-b23343de51e5",
"type": "select",
"label": "How likely?",
"value": "Unlikely",
"options": [
{
"label": "Rare",
"value": "Rare"
},
{
"label": "Unlikely",
"value": "Unlikely"
},
{
"label": "Possible",
"value": "Possible"
},
{
"label": "Likely",
"value": "Likely"
},
{
"label": "Almost certain",
"value": "Almost certain"
}
],
"optional": false,
"data_source": "static"
},
{
"name": "4e9ed577-1cfe-4471-b417-0686e27a108f",
"type": "textarea",
"label": "Any other notes?",
"optional": true
}
],
"results_channel": {
"value": "GGWRMBALC"
},
"dialog_submit_label": "",
"delivery_button_label": "Open Form",
"delivery_message_text": "Hello! To get started, please fill out this form."
}
},
{
"type": "message",
"id": "0c7531b1-8f92-4a5c-9b49-cfa38eb7b5d7",
"config": {
"user": {
"ref": "8c3cf67c-2331-43b4-9f74-22092d0b17c2==user"
},
"has_button": false,
"message_text": "Thank you! We’ll nut out what we could do to make it less likely or less bad, and when we might be able to do that."
}
},
{
"type": "message",
"id": "e403d6e6-2a39-41e3-a918-1b169623d9c0",
"config": {
"channel": {
"ref": "8c3cf67c-2331-43b4-9f74-22092d0b17c2==channel"
},
"has_button": false,
"message_text": "{{8c3cf67c-2331-43b4-9f74-22092d0b17c2==user}} just suggested something for the risk register :heart_eyes:"
}
}
]
}
}
}
@garthk
Copy link
Author

garthk commented Oct 17, 2019

TODO:

  • Add the magic “Does this feel risky to you?” question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment