Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SprintPulse – Sprint Health Dashboard for Jira

A Forge app for Codegeist 2026 (Apps for Software Teams) that visualizes real‑time sprint health metrics directly inside Jira.

Features

  • Live sprint data: Fetches sprints and issues from your Jira board via Jira REST API
  • Health metrics: Completion rate, scope‑change risk, sprint‑goal presence
  • Color‑coded badges: Green (healthy), yellow (at‑risk), red (critical)
  • Interactive UI: Dropdown to switch between sprints, instant metric updates
  • Zero secrets: Uses Forge’s context.jira.token for authenticated API calls

Architecture

Layer Technology
Frontend Forge UI Kit (@forge/react) – Select, DynamicTable, Badge, Box, Inline, Heading, SectionMessage, Spinner
Backend Forge Functions (@forge/resolver) – two resolvers: getSprints, getHealth
API Jira Agile REST API (/rest/agile/1.0/...)
Permissions read:jira-work, read:project:jira (declared in manifest.yml)

Project Structure

sprintpulse/
├── manifest.yml                 # App definition, modules, permissions
├── src/
│   ├── frontend/
│   │   └── index.jsx            # UI Kit dashboard (configurable USER_BOARD_ID)
│   └── resolvers/
│       └── index.js             # Resolver functions calling Jira REST API
├── package.json
└── README.md

Prerequisites

  • Atlassian developer site (free) with Jira Software
  • Forge CLI installed & logged in (forge login)
  • Node.js 18+ and npm
  • A Jira Scrum board with at least one active sprint containing issues

Quick Start

1. Get Your Board ID

  1. Open your Jira Scrum board.
  2. Copy the number from the URL:
    • https://your-site.atlassian.net/jira/software/c/23/agile → Board ID = 23
    • https://your-site.atlassian.net/jira/software/projects/KEY/boards/12 → Board ID = 12

2. Configure the Board ID

Edit src/frontend/index.jsx and replace the placeholder:

const USER_BOARD_ID = 1;   // <-- change this to your actual Board ID

3. Install Dependencies

npm install

4. Deploy & Install

forge deploy      # Deploys to Forge development environment
forge install     # Installs on your Atlassian site → select "Jira Software"

5. Verify in Jira

  • Go to Jira Settings → Projects → [your project] → Project pages
  • Click SprintPulse
  • You should see a sprint dropdown and live health metrics.

Development Workflow

# Hot‑reload UI while editing frontend code
forge tunnel

# After code changes, deploy to persist
forge deploy

# View function logs (last 10 minutes)
forge logs --since 10m

How It Works

  1. Frontend (src/frontend/index.jsx):

    • On mount, calls getSprints resolver with USER_BOARD_ID
    • Populates sprint dropdown; auto‑selects first sprint
    • On sprint change, calls getHealth resolver with sprintId
    • Renders health badges and metrics table
  2. Resolvers (src/resolvers/index.js):

    • getSprints(boardId) → GET /rest/agile/1.0/board/{boardId}/sprint?state=active,future
    • getHealth(sprintId):
      • GET /rest/agile/1.0/sprint/{sprintId} (sprint details + goal)
      • GET /rest/agile/1.0/sprint/{sprintId}/issue?fields=summary,status,issuetype,storypoints
      • Calculates: total, done, in‑progress, to‑do, completion rate, goal presence
      • Returns overall, scopeChange, commitment, and metrics object

Customization

  • Add more metrics: Extend the metrics object in getHealth
  • Change thresholds: Adjust green/yellow values in getStatusForValue
  • Cache data: Use Forge Storage (@forge/api) to cache sprint lists
  • Rovo AI: Add a Rovo agent to narrate sprint health (future enhancement)

Submission (Codegeist 2026)

Artifact How to Obtain
Installation link forge install --link
App ID Output of forge deploy (format ari:cloud:ecosystem::app/...)
Demo video Record ≤5 min showing live data, UI, and code walkthrough
Category Apps for Software Teams

Troubleshooting

Symptom Fix
Empty sprint dropdown Verify USER_BOARD_ID; ensure board has active/future sprints
401/403 errors Confirm read:jira-work and read:project:jira in manifest.yml; redeploy
Metrics show zeros Sprint has no issues, or all issues are in one status column
forge tunnel fails forge logout && forge login; ensure Node 18+

Icon Attribution

Sidebar icon: Tabler Icons — activity-heartbeat Copyright (c) Paweł Kuna / Tabler, licensed under the MIT License. Source: Wikimedia Commons. An original icon draft also lives at static/sprintpulse-icon.svg.

License

MIT — built for Codegeist 2026 hackathon.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages