Skip to content

fix(jira): collect issues via search API to avoid kanban sub-filter exclusion#8931

Open
jbsmith7741 wants to merge 3 commits into
apache:mainfrom
jbsmith7741:fix-jira-kanban-8917
Open

fix(jira): collect issues via search API to avoid kanban sub-filter exclusion#8931
jbsmith7741 wants to merge 3 commits into
apache:mainfrom
jbsmith7741:fix-jira-kanban-8917

Conversation

@jbsmith7741

Copy link
Copy Markdown
Contributor

Summary

Jira boards configured with kanban sub-filters silently exclude issues when collected via the standard board-issue endpoint. This PR switches issue collection to use the Jira Search API (JQL) derived from the board's filter configuration, ensuring all matching issues are ingested regardless of sub-filter settings.

Additionally fixes:

  • SubQuery struct shape to correctly unmarshal the nested API response
  • Config-UI connection list passing the React MouseEvent into onCreate (which expects no arguments), causing the synthetic event object to be stored as plugin state. Fixed by wrapping the handler in an arrow function so onCreate() is called cleanly with no arguments.
  • Config-UI connection form crashing when a plugin config omits initialValues — downstream code spreads/iterates this value, so destructuring without a default produced undefined and threw at runtime. Fixed by defaulting to {} during destructuring.

Does this close any open issues?

Closes #8917

Screenshots

N/A — backend data-pipeline change with no UI impact beyond the crash fixes.

Other Information

  • New migration script 20260611_add_sub_query_to_boards.go adds the sub_query column to _tool_jira_boards.
  • Unit tests added for BoardConfiguration unmarshalling and the search-API issue collector.

…exclusion

  * Switch from board Agile API to search API with saved filter JQL so
    resolved issues (e.g. released fixVersions) are no longer silently
    excluded by kanban sub-filters
  * Add sub_query field to boards model and migration to track kanban
    sub-filter changes across syncs
  * Support JIRA Cloud v3 search/jql endpoint alongside v2 for Server
…shes

* Fix Jira board SubQuery struct to match nested API response shape
* Prevent click event from being stored as plugin state in connection list
* Default initialValues to empty object when plugin config omits it
(jira) Add BoardConfiguration unmarshal tests

  * Verify SubQuery parsing for kanban boards with, without, and empty sub-filter objects
  * Include a test using a full Jira Cloud response payload to validate all fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Jira] Kanban board sub-filter silently excludes issues from collection

1 participant