Skip to main content

Comment Analysis → Feature Messaging

Scenario

Issue comments contain raw voice-of-the-customer language — how they describe problems, what they wish for. This job pulls comments from recent customer-reported issues, feeds the language into Mavera’s Brand Voice engine, then generates feature messaging that mirrors how customers actually talk. Flow: Jira GET /issue/{id}/comment → aggregate language → Mavera POST /api/v1/brand-voicesPOST /api/v1/generations

Code

Example Output

Error Handling

Jira Cloud returns comment bodies in Atlassian Document Format. The code walks body.content[].content[].text. Inline code, mentions, and media nodes need type-specific handling.
Automation bots post comments too. Filter by author.accountType === "atlassian" to include only humans, or maintain a bot exclusion list.
Issues with 100+ comments require pagination via startAt. The code fetches 20 most recent per issue. For thorough analysis, page through all comments.