Info |
---|
Current user must have Jira Permission to browse users and groups. Three request headers must be set beforehand:
|
Set Automation rule
In order to set up the Automation rule for the project, proceed to Project settings → Automation → click Create rule.
...
Validate your web request configuration by entering an issue key (optional).
Click Save and select Turn it on.
Use Case example
When the issue is commented on, I want Secure field values to be sent to the administrators by email.
Steps to configure
Trigger
Go to Project settings → Automation → click Create rule.
Create a trigger: Issue commented.
Pick comment type → click Save.
Add Action 1
Add an action: Send web request.
Web request URL: …/integration/app/rest/api/v1/secure-field/value/{issueId}.
Headers: email, jira-host and api-token.
HTTP method: GET.
Web request body: Empty.
Wait for response: check the box for “Delay execution of subsequent rule actions until we've received a response for this web request.“
Click Save.
Add Action 2
Add an action: Send email.
To: administrators.
Enter the subject of the email.
Content: {{webResponse.body}}.
Click Save → Turn it on.