Integration Tasks V2

1. Creating custom fields in Jira

The integration requires three custom fields in Jira to store metadata about each ABR request. These fields are populated automatically by the integration's webhooks:

  • ABR Request ID - the unique identifier assigned to the request in Admin By Request, populated when the Jira issue is first created. This is also the value you need if you later build Jira automation rules that call back to the ABR API to approve or deny requests.

  • ABR Handled by - the name of the approver or administrator who acted on the request, populated once the request has been approved or denied in any channel.

  • ABR Reason - the reason text entered by the approver when a request is denied (if they provided one), populated when the denial is recorded.

All three fields are created in Jira's global field registry in this task. After creating them here, you also need to make them available in your specific Jira Space - that is a separate step covered in Task 2 below.

2. Adding custom fields to your Jira Space

Creating a custom field in Jira adds it to the global field registry, but it does not automatically make it available in your Jira Space's forms. After creating the three ABR fields, you need to include them in the Field Configuration that applies to your Space. A Field Configuration is a named set of field settings that Jira uses to control which fields are visible and required in a given Space.

This step is new in V2 of the integration guide - earlier versions of the Jira interface handled this differently. Without completing this step, your custom fields may not appear in the Request Type form you configure in Task 3, and the integration will not be able to populate them.

3. Creating a custom Request Type

A custom Request Type tells Jira Service Management how to categorize and route the issues that Admin By Request creates. This is also where you decide whether Jira will offer native "Approve" and "Decline" buttons on each issue, which enables approvers to act directly in Jira without going to the ABR portal.

4. Integrating Jira with Admin By Request

Now that the prerequisites are in place and Jira has been prepared, go to https://jira.adminbyrequest.com to complete the integration. This is a dedicated setup wizard hosted by Admin By Request - it is separate from both the ABR portal and the Jira interface itself.

Updating your Atlassian API token

Atlassian API tokens can expire, be rotated as part of credential hygiene, or be revoked. When a token becomes invalid, the integration stops working - ABR cannot create or update Jira issues. In V2 of the Admin By Request Jira integration, you can replace the Atlassian API token without going through the full reinstallation process.

Before you begin, note what the update procedure can and cannot change:

  • You can update the Atlassian API token (Jira best practice is to update to a scoped token, which is enforced by the integration).

  • You cannot change the ABR API key using this procedure.

  • You cannot change the Atlassian subdomain using this procedure.

  • If either the ABR API key or the Atlassian subdomain needs to change, a full reinstallation is required.

You will need your original ABR API key (the one used when the integration was first installed) to complete this update. It is used as a verification step to confirm you are authorized to modify the integration. If you do not have this key, you will need to reinstall the integration.

What appears in Jira

When a user on an Admin By Request-managed device submits an elevation request (Admin Session or Run As Admin) while Require Approval is enabled, the integration creates a Jira issue in your selected Space.

NOTE

It can take several minutes after the ABR request is submitted for the Jira issue to appear. This delay is expected and is due to webhook processing time. It is not an indication that anything has gone wrong.

Each Jira issue contains the following information:

  • Summary - set initially to "Admin session request" or "Run as admin request" depending on the request type. When the request is decided, the Summary is updated automatically by prepending "APPROVED" or "DENIED". This update occurs regardless of which channel was used to approve or deny - the ABR portal, the mobile app, a Teams or Slack integration, or a Jira automation rule.

  • ABR Request ID - populated at issue creation with the unique identifier of the ABR request.

  • ABR Handled by - populated when the request is approved or denied with the name of the person who acted on it.

  • ABR Reason - populated if the request was denied and the approver provided a reason.

  • Description - populated by ABR with a description of the elevation request (what was requested and from which device).

What next?

The preceding sections cover the full extent of what the Admin By Request Jira integration does on its own. Everything beyond creating and updating issues - notifying approvers by email, transitioning issue statuses, enabling Jira-native Approve/Decline buttons, adding custom context to issue descriptions - requires Jira's own automation tooling, which is the customer's responsibility to configure.

IMPORTANT

The automation examples provided in the next section are for convenience only. We do not support Jira automation rules and they must be used entirely at the customer's own risk. Test all automation rules in a non-production environment before enabling them in production.

When deciding which automation example to follow, consider the Work type you selected in Task 2:

Creating Jira automation rules

Using the Jira Audit log

The Jira Audit log is your most useful diagnostic tool when working with automation rules. Every rule has its own Audit Log that records each time the rule was triggered, what actions ran, and whether they succeeded or failed. If a rule does not behave as expected, the Audit Log is the first place to look.

Access the Audit Log for each rule in the automation rule editor:

Finding custom field IDs (required for Example 2)

The Example 2 automation rule makes web requests to the ABR API that include your custom field values as Jira smart values. To reference a custom field in a Jira automation expression, you need its numeric field ID - for example, customfield_10064. Field IDs are assigned by your Jira instance and are not shown in the Jira UI directly. To find them:

  1. Make sure at least one issue exists in your Jira Space. If none exist yet, create a test issue or make a test elevation request from an ABR-managed device.

  2. Note the issue number of an existing issue. Issue numbers are visible in the issue list - for example, "ABRJIRA-40".

  3. Enter the following URL in a browser, replacing the placeholders with your actual Jira subdomain and issue number:

    Copy
    https://<your-jira-website>.atlassian.net/rest/api/2/issue/<your-jira-issue-number>?expand=names
  4. The response is a large JSON object. Paste it into a text editor that supports JSON formatting (VS Code, for example, can format JSON with Shift+Alt+F on Windows or Shift+Option+F on macOS). Search the formatted JSON for the field names "ABR Request ID", "ABR Handled by", and "ABR Reason". Each one will appear alongside its field ID in customfield_XXXXX format.

    NOTE

    Your field IDs are unique to your Jira instance. They will be different from any examples in this documentation - there is no universal standard value. Note down all three field IDs; you will need the ABR Request ID field ID specifically when configuring Example 2.

    The following example shows issue ABRJIRA-40 and the field ID for ABR Request ID:

Linking back to the ABR Portal

Example 1 below illustrates how to add a link back to the ABR Portal's Requests page in the Jira issue Description field. This gives approvers a direct path to the ABR portal from within the Jira issue, which is useful when they prefer to handle approvals there rather than in Jira.