9/26/2023 0 Comments Trello integrations with slackrun.sh # An alternative port can be chosen via the `PORT` environment variable # Start our server (default port is 5000) # `export TRELLO_LIST_ID=target_board_id` # Output the board lists and their ids via:īin/list-trello-board-lists.py # Find the list we want and record its id as `TRELLO_LIST_ID` in `env` # `export TRELLO_BOARD_ID=target_board_id` # Find the board/list we want to add cards toīin/list-trello-boards.py # Find the board we want and record its id as `TRELLO_BOARD_ID` in `env` # `export TRELLO_TOKEN=value_from_oauth_token` # Save `oauth_token` as `TRELLO_TOKEN` in `env` # You will be given an `oauth_token` and `oauth_token_secret` value # Go back to the command line and enter "y" # Copy the standalone value from the page TRELLO_API_KEY =key_from_website TRELLO_API_SECRET =secret_from_website bin/generate-trello-tokens.py # You will be prompted to open a link # Using the "Key" as "TRELLO_API_KEY" and "Secret" as "TRELLO_API_SECRET" # Generate a permanent Trello API token (this can be disabled later on) # Save "Key" as `TRELLO_API_KEY` in `env` # will be marked as "Created by" the chosen user ![]() # We recommend creating a bot user as all cards # Once saved, add the "Webhook URL" field as `SLACK_MESSAGE_URL` into `env` # Customize Icon: Pick any you like - we recommend `:signal_strength:` # Descriptive Label: "slack-to-trello messages" # Post to Channel: Pick any channel - we will always be overriding this # These will be replies upon successful Trello card additions # Second Slack integration: Incoming WebHooks # Once saved, add the "Token" field as `SLACK_TOKEN` into `env` # Autocomplete -> Description: "Add a Trello card on the Engineering board" # URL: " # Please replace `my-server` with your server location # First Slack integration: Slash Commands # We will be building `slack_to_trello/config/env`Ĭp slack_to_trello/config/env.test slack_to_trello/config/env # Create 2 Slack integrations (1 for receiving slash commands, 1 for sending messages) Python setup.py develop # The remaining steps are for setting up our configuration Pip install -r requirements.txt # Install our module as a dependency of itself (meta) Git clone cd slack-to-trello/ # Install our dependencies ![]() To get a copy of slack-to-trello running, please follow the steps below: # Clone our repository In the future, we would like to support multiple teams and boards via an OAuth integration with Trello (to connect Slack users to Trello users) and some mechanism to select board (either from Slack or a mapping on the server). The current iteration is a proof of concept only 1 Slack team, 1 Trello user, and 1 Trello list is supported at the moment. Perform Trello actions via slash commands in Slack
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |