14. Git, CI and email to issue

Connect your code host so commits and pull requests that mention an issue key show up on the issue, let a build or alert tool post its status, and turn emails into issues.

This chapter describes features of Agile Boards Pro, the paid add-on.

Where to start: Settings > Git and CI

Step 1. Connect your code host

  1. Open Settings and click the Git and CI tab.
  2. Tick Accept webhook deliveries, tick Smart commits, and type the repository address and base branch.
  3. Click Generate new secret. Agile shows the secret once.
The new secret: 1 which secret it is, 2 the value to copy now into the webhook settings of GitHub, GitLab or Bitbucket. Later it stays hidden.
Figure 1. The new secret: 1 which secret it is, 2 the value to copy now into the webhook settings of GitHub, GitLab or Bitbucket. Later it stays hidden.
  1. Click Done.
The Git settings: 1 switch on, 2 smart commits (a commit saying *fixes WEB-0006* moves that issue to Done), 3 the webhook address for each host, 4 repository address, 5 base branch, 6 the secret.
Figure 2. The Git settings: 1 switch on, 2 smart commits (a commit saying fixes WEB-0006 moves that issue to Done), 3 the webhook address for each host, 4 repository address, 5 base branch, 6 the secret.

Watch out. Smart commits only move an issue when the commit author, matched by email to a project member, is allowed to make that move.

Step 2. Send a commit

  1. Your host now calls Agile on every push. (Here a signed push of the commit WEB-0006 Add the contact form validation is sent by script, exactly as GitHub would send it.)

Step 3. CI and alerts

  1. Scroll to CI and alerts, tick Accept CI and alert messages, click Generate new secret, and click Done. Agile saves the settings as it generates.
CI and alerts: 1 switch on, 2 the address Jenkins, Grafana, Sentry or your own script posts to, 3 the secret sent as *Authorization: Bearer*.
Figure 3. CI and alerts: 1 switch on, 2 the address Jenkins, Grafana, Sentry or your own script posts to, 3 the secret sent as Authorization: Bearer.
  1. Send a build result for WEB-0006 (by script, as Jenkins would).

Step 4. See it on the issue

  1. Open the Board, click the card Set up the contact form, then Open full page and the Development tab.
The Development tab: 1 the commit and branch found by its issue key, 2 the build result posted by CI. Both are linked to the host.
Figure 4. The Development tab: 1 the commit and branch found by its issue key, 2 the build result posted by CI. Both are linked to the host.

Step 5. Email to issue

  1. An administrator sets the company's email domain once in Settings > General Settings > Email (here by script, with example.com). Every project then gets its own address.
  2. Open Settings > Notifications, scroll to Email to issue and type the alias name web. Save.
Email to issue: 1 the part before the @, 2 the full address people write to, 3 who may send mail in. The subject becomes the title and the message the description; a reply that names the issue key in the subject is added as a comment.
Figure 5. Email to issue: 1 the part before the @, 2 the full address people write to, 3 who may send mail in. The subject becomes the title and the message the description; a reply that names the issue key in the subject is added as a comment.
  1. A customer writes to web@example.com with the subject Checkout page shows a blank screen (sent here by script).
  2. Open the Backlog. The email is a new issue.
The issue created from the email, in the Backlog (1). The sender follows it and later replies are added as comments.
Figure 6. The issue created from the email, in the Backlog (1). The sender follows it and later replies are added as comments.