> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/j/jira-assets-cloud.md).

# Jira Assets Cloud

Jira Assets is the asset and configuration management module of Jira Service Management. This adapter reads the objects of one object type from an Atlassian Cloud site and adds them to the device inventory, so CMDB records can be compared with what your security and management tools see.

## Use cases

* **Find CMDB records missing from your EDR.** List devices that exist in Jira Assets but are not reported by CrowdStrike.

```
Adapters = jira-assets-cloud AND NOT Adapters = falcon-crowdstrike
```

* **Review recently created records.** The first seen date comes from the object `created` field.

```
Adapters = jira-assets-cloud AND FirstSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                                                         | Port | Protocol |
| ------------------- | ------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | .atlassian.net (Domain parameter), used to find the workspace ID    | 443  | HTTPS    |
| OctoXLabs connector | api.atlassian.com (Base URL parameter), used to read Assets objects | 443  | HTTPS    |

If a proxy is configured, the connector sends the requests through it.

### Required permissions

Requires Jira Service Management with Assets (Standard, Premium or Enterprise). The account must have read access to the Assets workspace and to the object type being fetched. Authentication uses the account email together with an Atlassian API token.

## Create credentials in Jira Assets

{% stepper %}
{% step %}

### Choose or create the account

Use an Atlassian account that can read the Assets workspace and the object type you plan to fetch.
{% endstep %}

{% step %}

### Create an API token

In Atlassian account settings, go to **Security** and open **Create and manage API tokens**. Create a token for the account and copy it.
{% endstep %}

{% step %}

### Note the site domain and object type

Copy the site domain without a scheme, for example `company.atlassian.net`, and the exact name of the Assets object type. If you know the Assets workspace ID, copy it too. Otherwise leave it empty.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type    | Default                     | Description                                                                                                              |
| -------------- | -------- | ------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Domain         | Yes      | String  | None                        | Atlassian Cloud site domain without a scheme, for example `company.atlassian.net`. Used to look up the Assets workspace. |
| Base URL       | No       | String  | <https://api.atlassian.com> | Assets API gateway. Change it only if your tenant uses a different gateway.                                              |
| Email          | Yes      | String  | None                        | Email address of the Atlassian account.                                                                                  |
| API Token      | Yes      | String  | None                        | Atlassian API token of that account. Used with the email for Basic authentication.                                       |
| Object Name    | Yes      | String  | None                        | Assets object type to fetch, for example `Devices`. Child object types are included.                                     |
| Workspace ID   | No       | String  | None                        | Assets workspace ID. If empty, it is resolved from the site domain.                                                      |
| Is Secure      | No       | Boolean | True                        | Connect over HTTPS. The baseline lists it as Is Secure.                                                                  |
| Proxy          | No       | String  | None                        | Proxy address. The connector uses it as `http://<value>` for both HTTP and HTTPS.                                        |
| Per Page       | No       | Integer | 500                         | Number of objects requested per page.                                                                                    |
| Timeout        | No       | Integer | 30                          | Seconds to wait for an API response.                                                                                     |
| Hostname Field | No       | String  | objectKey                   | Top-level field of the object used as the hostname, for example `objectKey` or `label`.                                  |

## Troubleshooting

| Error message                                                                                   | Cause                                                                                   | Fix                                                                                                                              |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| No workspace found. Verify that Jira Assets is provisioned and the API credentials have access. | The workspace lookup returned no workspace.                                             | Check that Assets is enabled on the site and that the email and API token can access it. You can also set Workspace ID directly. |
| Max retries exceeded for {url}                                                                  | The API kept answering 429 (rate limit) for 5 attempts.                                 | Run discovery again later or lower the request volume with a larger Per Page.                                                    |
| Status Code: `, followed by URL, Method and the response body`                                  | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL.                                   |

## Change history
