collabSupport/services/jiraPoller/formatBody.js
jmcqueen a25fc08fe2 Rename /voicereport to /callreport with scoped user and phone targets.
Add store/email/phone filtering, richer call-line formatting, CDR feed pagination and queueing, and split Jira poller enrichment into testable modules.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 10:10:03 -04:00

11 lines
275 B
JavaScript

// services/jiraPoller/formatBody.js
/**
* @param {Array<{title: string, markdown: string}>} sections
* @returns {string}
*/
export function formatEnrichmentBody(sections) {
return (sections || [])
.map((s) => `## ${s.title}\n\n${s.markdown}`)
.join('\n\n');
}