> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useparagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Backlog

> Connect to your users' Backlog accounts to manage issues, projects, and comments from your app.

Product
Supported

## Connecting to Backlog

Your users will need the following information to connect their Backlog account with your integration built with Paragon Connect:

* **Space domain:** The host of the user's Backlog space. Users can enter the space ID (for example, `your-space`), the hostname (for example, `your-space.backlog.com`), or the full space URL. Spaces hosted on `backlog.jp` or `backlogtool.com` must include that host.
* **API key:** A personal API key created in Backlog under **Personal Settings > API**. The key acts as the Backlog user who created it. See Backlog's [API documentation](https://developer.nulab.com/docs/backlog/) for details.

Once your users have connected their Backlog account, you can use the Paragon SDK to access the Backlog API on behalf of connected users. Paragon sends requests to `https://<space domain>/api/v2` and sets the `Backlog-API-Key` header on each request.

See the Backlog [API reference](https://developer.nulab.com/docs/backlog/) for their full API documentation.

Any Backlog API endpoints can be accessed with the Paragon SDK as shown in this example.

```js JavaScript theme={null}
// You can find your project ID in the Overview tab of any Integration

// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);

// Search issues in a project
await paragon.request("backlog", "/issues?projectId[]=1&count=20", {
  method: "GET"
});

// Create an issue
await paragon.request("backlog", "/issues", {
  method: "POST",
  body: "projectId=1&summary=Fix+login&issueTypeId=2&priorityId=3",
  headers: { "Content-Type": "application/x-www-form-urlencoded" }
});
```

## Building Backlog workflows

Once your Backlog account is connected, you can add steps to perform the following actions:

* **Issues:** Search, get, create, update, and delete issues
* **Comments:** Add comments to an issue and list an issue's comments
* **Attachments:** List an issue's attachments
* **Projects:** Get and list projects, and list a project's issue types, statuses, and custom fields
* **Priorities:** List issue priorities
* **Users:** Get a user and list users in the space or in a project
* **Space:** Get the connected Backlog space

You can also use the [Backlog Request](https://docs.useparagon.com/workflows/requests.md#making-integration-requests) step to access any of Backlog's API endpoints without the authentication piece.

When creating or updating records in Backlog, you can reference data from previous steps by typing `{{` to invoke the variable menu.

## Using triggers

Backlog triggers subscribe to webhooks in the selected Backlog project and run your workflows when Backlog sends an event. You can use the following triggers:

* **Issue Created**
* **Issue Updated**
* **Comment Added**
