> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-maincl-1774016037-e3d94e8.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Jira integration

> Integrate with the Jira document loader using LangChain JavaScript.

<Tip>
  **Compatibility**

  Only available on Node.js.
</Tip>

This covers how to load document objects from issues in a Jira projects.

## Credentials

* You'll need to set up an access token and provide it along with your Jira username in order to authenticate the request
* You'll also need the project key and host URL for the project containing the issues to load as documents.

## Usage

```typescript theme={null}
import { JiraProjectLoader } from "@langchain/community/document_loaders/web/jira";

const host = process.env.JIRA_HOST || "https://jira.example.com";
const username = process.env.JIRA_USERNAME;
const accessToken = process.env.JIRA_ACCESS_TOKEN;
const projectKey = process.env.JIRA_PROJECT_KEY || "PROJ";

if (username && accessToken) {
  // Created within last 30 days
  const createdAfter = new Date();
  createdAfter.setDate(createdAfter.getDate() - 30);
  const loader = new JiraProjectLoader({
    host,
    projectKey,
    username,
    accessToken,
    createdAfter,
  });

  const documents = await loader.load();
  console.log(`Loaded ${documents.length} Jira document(s)`);
} else {
  console.log(
    "You must provide a username and access token to run this example."
  );
}
```

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/javascript/integrations/document_loaders/web_loaders/jira.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
