Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Current user must have Jira Permission to browse users and groups.

Three request headers must be set beforehand:

  • email - email address of the user, who will be accessing API

  • jira-host - address of Jira Cloud instance

  • api-token - token created by the user who will be accessing the API

Set Automation rule

In order to set up the Automation rule for the project, proceed to Project settings → Automation → click Create rule.

...

  1. Validate your web request configuration by entering an issue key (optional).

  2. 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

  1. Go to Project settings → Automation → click Create rule.

  2. Create a trigger: Issue commented.

  3. Pick comment type → click Save.

Add Action 1

  1. Add an action: Send web request.

  2. Web request URL: …/integration/app/rest/api/v1/secure-field/value/{issueId}.

  3. Headers: email, jira-host and api-token.

  4. HTTP method: GET.

  5. Web request body: Empty.

  6. Wait for response: check the box for “Delay execution of subsequent rule actions until we've received a response for this web request.“

  7. Click Save.

Add Action 2

  1. Add an action: Send email.

  2. To: administrators.

  3. Enter the subject of the email.

  4. Content: {{webResponse.body}}.

  5. Click Save → Turn it on.