Total Feedback = COUNT of all feedback items WHERE:
- product_id = current product
- subscription_id = current subscription
- status = "active"Trend = COUNT of new items created in last 7 days
Display: "+X this week"Unprocessed Count = COUNT of feedback items WHERE:
- product_id = current product
- subscription_id = current subscription
- status = "active"
- AND (
status_id IS NULL OR
status_id = 0 OR
status_id IN (lowest status ID per feedback type)
)Percentage = (Unprocessed Count / Total Feedback) × 100
Display: "X% of total"Linked Count = COUNT of feedback items WHERE:
- product_id = current product
- subscription_id = current subscription
- status = "active"
- AND (
work_item_internal_id IS NOT NULL OR
work_item_external_id IS NOT NULL
)Trend = COUNT of linked items updated in last 30 days
Display: "+X this month"updated_at as a proxy for "recently linked" since there's no dedicated "linked_at" timestamp.Current Week Average = AVG(
TIMESTAMPDIFF(HOUR,
feedback_item.created_at,
MIN(comment.created_at)
)
) WHERE:
- feedback_item.created_at BETWEEN (7 days ago) AND (now)
- feedback_item.product_id = current product
- feedback_item.subscription_id = current subscription
- feedback_item.status = "active"
- comment.feedback_item_id = feedback_item.idPrevious Week Average = Same calculation for 14-7 days ago
Difference = Current Week Average - Previous Week Average
Trend Type:
- "negative" if Difference < 0 (IMPROVEMENT - faster response)
- "positive" if Difference > 0 (slower response)
- "neutral" if Difference = 0 (no change)
Display: "X.Xh vs last week"| Metric | Trend Window | Comparison |
|---|---|---|
| Total Feedback | Last 7 days | New items created |
| Unprocessed | Current snapshot | Percentage of total |
| Linked to Backlog | Last 30 days | Items updated |
| Avg Response Time | Last 7 days | Previous 7 days |