Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: add active sprints API for dynamic sprint resolution in /ticket skill
Adam Eivy646279abffdb
diff --git a/.changelog/v0.14.x.md b/.changelog/v0.14.x.mdindex dd2fee24dd..c6e3f0cacf 100644--- a/.changelog/v0.14.x.md+++ b/.changelog/v0.14.x.md@@ -45,6 +45,9 @@ This release adds Ghostty terminal theme integration and a project update workfl- **CoS status integration** — shows if Chief of Staff is running/paused with active agent count- **New `/api/health/system` endpoint** — consolidates system metrics, PM2 process stats, app status, and CoS state in one API call+### JIRA Active Sprints API+- **`GET /api/jira/instances/:id/boards/:boardId/sprints`** — new endpoint to fetch active sprints for a JIRA board via the Agile REST API; used by the `/ticket` skill to dynamically resolve the current sprint ID instead of hardcoding sprint names+## Fixes- **Disabled GLSL custom shaders** — fragment shaders (bloom, nebula, rain, etc.) ran per-pixel every frame causing GPU-bound lag on terminal output; themes now use color palettes onlydiff --git a/server/routes/jira.js b/server/routes/jira.jsindex e7f6440263..3f0b941d8f 100644--- a/server/routes/jira.js+++ b/server/routes/jira.js@@ -218,4 +218,20 @@ router.get('/instances/:instanceId/my-sprint-tickets/:projectKey', async (req, r}});+/**+ * GET /api/jira/instances/:instanceId/boards/:boardId/sprints+ * Get active sprints for a board+ */+router.get('/instances/:instanceId/boards/:boardId/sprints', async (req, res, next) => {+ try {+ const sprints = await jiraService.getActiveSprints(+ req.params.instanceId,+ req.params.boardId+ );+ res.json(sprints);+ } catch (error) {+ next(error);+ }+});+export default router;diff --git a/server/services/jira.js b/server/services/jira.jsindex 2c75b23a6b..682d9bb65e 100644--- a/server/services/jira.js+++ b/server/services/jira.js@@ -307,6 +307,31 @@ export async function getMyCurrentSprintTickets(instanceId, projectKey) {}}+/**+ * Get active sprints for a JIRA board+ */+export async function getActiveSprints(instanceId, boardId) {+ const config = await getInstances();+ const instance = config.instances[instanceId];++ if (!instance) {+ throw new Error(`JIRA instance ${instanceId} not found`);+ }++ const client = createJiraClient(instance);+ const response = await client.get(`/rest/agile/1.0/board/${boardId}/sprint`, {+ params: { state: 'active' }+ });++ return response.data.values.map(sprint => ({+ id: sprint.id,+ name: sprint.name,+ state: sprint.state,+ startDate: sprint.startDate,+ endDate: sprint.endDate+ }));+}+export default {getInstances,saveInstances,@@ -318,5 +343,6 @@ export default {updateTicket,addComment,transitionTicket,- getMyCurrentSprintTickets+ getMyCurrentSprintTickets,+ getActiveSprints};