A Slack Slash Command that makes it easy to generate project completion notices. You can send these to the client. After calling the command /completion-notice
, you can interactively enter the remaining needed information. You will receive the final PDF in the slack thread of the command.
- create a slack app
- add the completion-notice Slash Command to your app
- get the SLACK_TOKEN
- get your MOCO_TOKEN
- add the tokens to the environment variables in Gitlab (Settings > CI/CD > Variables).
Slack only gives 3 seconds for handling interactions, that's why we decoupled the information gathering and generation of the PDF with Amazon EventBridge.
This implementation uses Slack user interactions. For this only one endpoint for all implementations can be configured. We use our Slack-Interaction-Handler for the Short Mail-, Completion Notice-, lock- and unlock-bot.
To use the completion notice bot, just type /completion-notice in any chat.
/completion-notice
Then select the project for which you want to create the completion notice from the drop-down menu.
The bot gives you feedback that it is creating the completion notice:
Then the bot will reply in the thread with the completion notice as a PDF to download, just like this: