Skip to content

[Jira] Fix false-positive "field name is duplicated" warnings when multiple boards share a connection - #9053

Merged
klesh merged 1 commit into
apache:mainfrom
bramhanandlingala:fix/#9052
Aug 16, 2026
Merged

[Jira] Fix false-positive "field name is duplicated" warnings when multiple boards share a connection#9053
klesh merged 1 commit into
apache:mainfrom
bramhanandlingala:fix/#9052

Conversation

@bramhanandlingala

Copy link
Copy Markdown
Contributor

closes: #9052

Summary
getIssueFieldMap() logged a "field name is duplicated" warning every time
a field name appeared more than once in _tool_jira_issue_fields, even when
it was the exact same field just present on multiple boards. On a
connection with several boards this produced hundreds of false-positive
warnings per pipeline run.

Root cause
_tool_jira_issue_fields stores one row per (connection_id, board_id, field
id), so a field present on N boards produces N rows with the same ID but
the same Name. getIssueFieldMap() warned on any second occurrence of a
Name without checking whether the ID actually differed, so board
recurrence was misread as a name collision.

Fix
Only warn when two different field IDs share the same display name, which
is the actual ambiguous case. The existing SchemaType == "user" override
is unchanged. Also fixed a typo in the log message: "filed name" -> "field
name".

@klesh klesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Good catch.
Thanks for your contribution.

@klesh
klesh merged commit 3b7092b into apache:main Aug 16, 2026
10 checks passed
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] getIssueFieldMap() emits false-positive "field name is duplicated" warnings when multiple boards share a connection

2 participants