- Python 100%
| .gitignore | ||
| app.py | ||
| func.py | ||
| LICENSE | ||
| README.md | ||
| settings.py | ||
Mattermost-Octane-Client
The Mattermost-Ocatane-Client creates an integration for the communication platform Mattermost to post defects from the lifecycle management tool ALM Octane.
Delivery
The Client gets delivered as a plain python repository. You need to install some libraries vie PyPi or pip so the server can run.
You may either use a Virtual Env which you can install with pip or any container.
The packages to install are:
- markdownify
- flask
and all the side packages that come with it.
Deployment
The app should be deployed to a production WSGI server instead of running on the default development server. To get more information on how to do this go here.
Setup Mattermost Webhooks
Main Menuor the three lines next to your name- Press
Integrations - In the center of the screen click
Incoming Webhooks - Add a new webhook by clicking on
Add Incoming Webhook - Copy the URL and set it as
mm_webhook_urlin Settings.py - You may also change the appearance of the Client and the target channel in this file
Setup Octane Webhooks
To Setup ALM Octane Webhooks you need to follow these steps:
- Start the client by running
python app.py - Under Settings (Cog-Wheel) Click on
Spacesin theAdministrationcategory. - Select The Workspace you want to setup the Webhooks for.
- Under the
EntitiesCategory selectDefect. - Press the
+button to add a rule. - Set up the Webhook
- Status: On
- Action: Trigger Webhook
- Submission Mode: New, Update, Delete (or your choice of the three)
- URL: The URL set in settings.py / which was shown in the console on client startup
Don't forget to pass the security token set in settings.py/shown on startup
- Credentials: Empty Feel free to test the connection if the client is running
- Fields:
Author,Blocked,Blocked reason,Closed on,Creation time,Defect Type,Description,Detected by,Last modified,Name,Owner,Tags - Leave the rest as is
- Press
OK - Leave settings and save
Run the application
If you have installed all packages, set all necessary variables in Settings.py and setup Mattermost as well as ALM Octane for the Webhooks you can execute the client by typing python app.py in the console window.