Create Jira Feed
User Intent
Operation
Code Example (TypeScript)
import { Graphlit } from 'graphlit-client';
import {
FeedTypes,
FeedServiceTypes,
AtlassianJiraFeedPropertiesInput,
} from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
const jiraSiteUrl = process.env.JIRA_SITE_URL!; // e.g., https://company.atlassian.net
const jiraProjectKey = process.env.JIRA_PROJECT_KEY!; // e.g., ENG
const feed = await graphlit.createFeed({
name: 'Engineering Jira',
type: FeedTypes.Issue,
issue: {
type: FeedServiceTypes.AtlassianJira,
jira: {
uri: jiraSiteUrl,
email: process.env.JIRA_EMAIL!,
token: process.env.JIRA_API_TOKEN!,
project: jiraProjectKey,
readLimit: 100,
includeAttachments: true,
},
},
// Optional: add workflow for content processing
// workflow: { id: workflow.createWorkflow.id }
});Configuration
API Token Setup
Last updated