|
| 1 | +--- |
| 2 | +linkTitle: jira-api |
| 3 | +title: jira-api |
| 4 | +prev: /docs/deployment/addons/gitlab-mr-api |
| 5 | +next: /docs/user-manual/ |
| 6 | +--- |
| 7 | + |
| 8 | +**Teams Notifier's jira-api component** |
| 9 | + |
| 10 | +| | | |
| 11 | +|---|---| |
| 12 | +| **homepage** | https://github.com/teams-notifier/jira-api | |
| 13 | +| **registry** | https://github.com/teams-notifier/jira-api/pkgs/container/jira-api | |
| 14 | +| **image** | `ghcr.io/teams-notifier/jira-api:latest` | |
| 15 | + |
| 16 | +## Intro |
| 17 | + |
| 18 | +This component enables notification from Jira Automation to MS Teams card. |
| 19 | + |
| 20 | +Here's an example of a Jira issue messages from default to fully expanded: |
| 21 | +{{< img src="jira-card-example-original.png" style="margin-left: 0rem">}} |
| 22 | +{{< img src="jira-card-example-level1.png" style="margin-left: 0rem">}} |
| 23 | +{{< img src="jira-card-example-full.png" style="margin-left: 0rem">}} |
| 24 | + |
| 25 | +## Config |
| 26 | + |
| 27 | +Environment variables or `.env`: |
| 28 | + |
| 29 | +* `PORT`: port to listen to (def: `8080`) |
| 30 | +* `ACTIVITY_API`: `activity-api` base URL (ex: `https://activity-api:3981/`) |
| 31 | +* `VALID_X_SHARED_SECRET_TOKEN`: comma separated list of Gitlab's Secret token (sent as `X-Shared-Secret-Token` header). A UUIDv4 generated token is recommended. |
| 32 | + |
| 33 | +## Jira Automation usage |
| 34 | + |
| 35 | +You'll need: |
| 36 | +- one or more conversation tokens |
| 37 | +- one of the `VALID_X_SHARED_SECRET_TOKEN` you generated |
| 38 | + |
| 39 | +On your Jira Automation, in a "Send web request" action: |
| 40 | + |
| 41 | +* **Web request URL**: https://hostname-of-this-api.example.org/api/v1/issue |
| 42 | +* **HTTP method**: POST |
| 43 | +* **Web request body**: Either *Issue data (Jira format)* or *Issue data (Automation format)* |
| 44 | +* **Headers (optional)**: add two headers |
| 45 | + * **X-Shared-Secret-Token**: One of the `VALID_X_SHARED_SECRET_TOKEN` you generated |
| 46 | + * **X-Conversation-Token**: comma separated list of conversation tokens you want the Issue sent to |
0 commit comments