Skip to content

Commit

Permalink
Fix action map for Jira
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mizutani committed Dec 17, 2023
1 parent e0fdd05 commit a0e00c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import (
var actionMap = map[types.ActionName]interfaces.RunAction{
"github.create_issue": github.CreateIssue,
"github.create_comment": github.CreateComment,
"github.add_attachment": github.CreateComment,
"jira.create_issue": jira.CreateIssue,
"jira.add_comment": jira.AddComment,
"jira.add_attachment": jira.AddAttachment,
"chatgpt.query": chatgpt.Query,
"slack.post": slack.Post,
"http.fetch": http.Fetch,
Expand Down
2 changes: 1 addition & 1 deletion pkg/action/jira/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Actions for jira.com
- **Account ID**: You need to know your account ID. You can find account ID from URL of your profile page. e.g. `https://your-domain.atlassian.net/jira/people/5f6c3a1c1a2b3c4d5e6f7a8b` and `5f6c3a1c1a2b3c4d5e6f7a8b` is your account ID.
- **API token**: You need to create an API token. You can find instructions on how to do so [here](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).

## `jira.create_ticket`
## `jira.create_issue`

This action creates a ticket in the specified Jira project to serve as an alert handling ticket.

Expand Down

0 comments on commit a0e00c7

Please sign in to comment.