Overview
Assembla's Webhooks tool allows you to post information about space activities such as code commits, Tickets tool activities, posted files, etc. to external systems.
1. Installing the Webhooks tool
You can install the Webhooks tool from Admin > Tools > by clicking the 'Add' button next to "Webhooks."
2. Configuring the tool
Click on the "New webhook" and you will see the following screen.
You can select from preconfigured webhooks in the right panel or start from scratch and configure your own. If you would like us to add your company to the list of preconfigured webhooks, please email us at support@assembla.com.
Title: This will be the name of the webhook that will display in the submenu
Enabled: This turns the webhook on/off. When your webhook is configured, and you are ready to post info, make sure to enable it.
Authentication Type: You can choose between Basic and OAuth
- Basic Authentication: You can give webhook the username and password required by the external system through the external url. http://your_username:your_password@link_to_the_external_system_API In some pre-configured posts, you just need to replace "username" and "password" in the url by your information.
- OAuth: An authentication method that lets you use apps without them storing your password. Give the webhook your app's API key and Secret. Setup the external service OAuth URL, typically provided provided in external service's API documentation. Authenticate with the service and you are ready to go!
HTTP Method: POST or GET. POST is most common and used to post info to the external systems.
Content Type: If POST is selected, you can select the desired "content type" from a list of the following options: application/xml, application/json, application/x-www-form-urlencoded, text/html, text/plain
Content: If POST is selected, configure the desired format to display posted information. The available variable are listed below.
- %{author}: Name of the author who triggered the event
- %{object}: Class name of the related object in the event..
- %{space}: Project in which the event happened
- %{action}: The action that triggered the event..
- %{title}: title of a message, wiki page, or name of uploaded file, ...
- %{body}: content of a message, wiki page, ...
- %{link}: link to the event in Assembla
- %{repository_url}: Repository url for the repository that received the commit
- %{repository_suffix}: Repository suffix for the repository that received the commit. If repository suffix is blank, 'origin' will be returned
- %{branch}: Branch to which the commit was made (availability: only for commit events and only for git)
- %{commit_id}: Commit id (availability: only for repository commit events)
For example, %{author} has %{action} a %{object}: "%{title}" in project %{space} will generate Andy has created a message: "we will need to discuss the new design tomorrow" in project Assembla Development when a message event occurs.
Post Updates About: Use the checkboxes to check the desired project events.
If you have any questions or need assistance. Please always feel free to email us at support@assembla.com. We will be happy to assist.
Comments
0 comments
Article is closed for comments.