* Converts a fully-fetched Jira issue (with description and comments) into an * ExternalDocument with resolved content.
(issue: Record<string, unknown>, domain: string)
| 92 | * ExternalDocument with resolved content. |
| 93 | */ |
| 94 | function issueToFullDocument(issue: Record<string, unknown>, domain: string): ExternalDocument { |
| 95 | const stub = issueToStub(issue, domain) |
| 96 | const fields = (issue.fields || {}) as Record<string, unknown> |
| 97 | const content = buildIssueContent(fields) |
| 98 | |
| 99 | return { |
| 100 | ...stub, |
| 101 | content, |
| 102 | contentDeferred: false, |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | export const jiraConnector: ConnectorConfig = { |
| 107 | ...jiraConnectorMeta, |
no test coverage detected