Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Dec 31, 2024
1 parent d54a79f commit fe42ea4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ 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` for the project containing the issues to load as documents.
- 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

Expand Down
6 changes: 3 additions & 3 deletions examples/src/document_loaders/jira.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { JiraProjectLoader } from "@langchain/community/document_loaders/web/jira";

const host = process.env.JIRA_HOST || 'https://jira.example.com';
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';
const projectKey = process.env.JIRA_PROJECT_KEY || "PROJ";

if (username && accessToken) {
// Created within last 30 days
Expand All @@ -14,7 +14,7 @@ if (username && accessToken) {
projectKey,
username,
accessToken,
createdAfter
createdAfter,
});

const documents = await loader.load();
Expand Down

0 comments on commit fe42ea4

Please sign in to comment.