diff --git a/docs/core_docs/docs/integrations/document_loaders/web_loaders/jira.mdx b/docs/core_docs/docs/integrations/document_loaders/web_loaders/jira.mdx index 26478514ca30..fc77f4a14ab1 100644 --- a/docs/core_docs/docs/integrations/document_loaders/web_loaders/jira.mdx +++ b/docs/core_docs/docs/integrations/document_loaders/web_loaders/jira.mdx @@ -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 diff --git a/examples/src/document_loaders/jira.ts b/examples/src/document_loaders/jira.ts index 73d52efdf76f..50b2a9511c45 100644 --- a/examples/src/document_loaders/jira.ts +++ b/examples/src/document_loaders/jira.ts @@ -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 @@ -14,7 +14,7 @@ if (username && accessToken) { projectKey, username, accessToken, - createdAfter + createdAfter, }); const documents = await loader.load();