jira: auto-detect boards & epics when configuring an app's JIRA integration#2239
Merged
Conversation
…ration Configuring an app's JIRA settings now detects the project's boards (dropdown with a stale-board warning) instead of a hand-typed Board ID, shows the selected board's active sprint, and adds epic search-by-name plus key validation. New read-only endpoints: GET .../projects/:key/boards and GET .../issues/:key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Configuring an app's JIRA integration used to require hand-typing a Board ID (a free-text field) — exactly how a board id silently goes stale (e.g. after a Server→Cloud migration, where board ids are reassigned). The app-config JIRA tab now auto-detects the workspace from the chosen instance + project:
id — name (type)) instead of free text. If the app's saved board id isn't among the project's live boards, it's flagged with an amber "pick a current one" warning (the stale value stays selectable so it isn't silently dropped). Falls back to manual entry if detection fails.How
server/services/jira.js+routes/jira.js), mirroring the existinggetProjects/searchEpicspattern:GET /jira/instances/:id/projects/:key/boards→getBoards()(paginated Agile board list)GET /jira/instances/:id/issues/:key→getIssue()(resolve a key for epic validation)apiSystem.jswrappers (getJiraBoards,getJiraBoardSprints,searchJiraEpics,getJiraIssue) +EditAppDrawer.jsxUI. Board-reset on instance/project change is centralized inchangeInstance/selectProjecthandlers so no call site forgets it (deliberately interaction-driven, not aprojectKeyeffect that would wipe the saved board on mount before staleness detection runs). Epic field discriminates validate-vs-search via a key regex so only one request fires.Review & tests
/simplifypass (reuse/simplification/efficiency/altitude): applied the board-reset consolidation; skipped anEntityComboboxswap (its client-side filter + create-new + single-mode don't fit the epic field's server-search + dual key/name mode + validation footer).claudereview pass: no high/medium defects; applied its one actionable finding (trimepicKeyon save so it matches the validation).jira.test.js14/14, clientEditAppDrawer.test.jsx8/8; client lint clean.