Skip to content

Commit 24a92ba

Browse files
authored
Merge pull request #8 from teams-notifier/doc/add-jira-api-doc
doc(jira-api): add jira-api documentation
2 parents ecc2cde + 02394a5 commit 24a92ba

File tree

7 files changed

+49
-2
lines changed

7 files changed

+49
-2
lines changed

content/docs/deployment/addons/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ weight: 100
77
---
88

99
* [gitlab-mr-api]({{< ref "gitlab-mr-api" >}}): service to publish and update message on Gitlab MR Activity
10+
* [jira-api]({{< ref "jira-api" >}}): service to publish messages from Jira Automation

content/docs/deployment/addons/gitlab-mr-api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
linkTitle: gitlab-mr-api
33
title: gitlab-mr-api
44
prev: /docs/deployment/addons/
5-
next: /docs/user-manual/
5+
next: /docs/deployment/addons/jira-api
66
---
77

88
**Teams Notifier's gitlab-mr-api component**
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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
38.2 KB
Loading
34.4 KB
Loading
11.5 KB
Loading

content/docs/user-manual/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
linkTitle: "User manual"
33
title: User manual
4-
prev: /docs/deployment/addons/gitlab-mr-api
4+
prev: /docs/deployment/addons/jira-api
55
next: /docs/user-manual/add-bot-to-groupchat
66
weight: 1000
77
---

0 commit comments

Comments
 (0)