This is a tutorial shows how to comment on an issue, this can be useful in many cases. For example to mention ceratin persons on creating or escalations.
- Create a new Action by clicking button
- Enter a name: Comment issue and click
- Select Method: and URL: <your_base_url>/rest/api/2/issue/{{issue.key}}/comment
From the Atlassian REST API we can read to comment on an issue we need to call POST /rest/api/2/issue/{{issue.key}}/comment - Select Authentication method: Basic Auth, specify a user that has comment permission in the project
- Add request headers, key: Content-Type with value application/json
On the Body section add the following
Code Block |
---|
{
"body":"RINT says hi {{issue.assignee.displayname}}!"
} |
- Click Triggers tab
- Select
Status |
---|
| |
---|
colour | Green |
---|
title | ISSUE CREATED |
---|
|
event - On JQL Condition. When to execute the event(s) write Project = TESTB and to limit the trigger to the TESTB project
- Click
- (Optional) Click Test button, Issue Key needs to be provided and click Send, Then go 3 - View Execution Log.