Skip to content

fix: allow string values in customFields for text and date fields#120

Merged
katayama8000 merged 2 commits into
nulab:mainfrom
Flupinochan:fix/custom-field-string-support
May 25, 2026
Merged

fix: allow string values in customFields for text and date fields#120
katayama8000 merged 2 commits into
nulab:mainfrom
Flupinochan:fix/custom-field-string-support

Conversation

@Flupinochan

Copy link
Copy Markdown
Contributor

Summary

Allow string values in customFields for text and date field types.

Problem

The value field in customFields only accepted number | number[],
making it impossible to set values for text or date custom fields,
which require string values according to the Backlog API specification.

Changes

  • src/tools/addIssue.ts
    • Expanded value schema to accept string | number | string[] | number[]
    • Updated the MCP tool field description for value to document all supported value types
  • src/tools/updateIssue.ts
    • Applied the same changes

Test

  • Manually verified on a local Docker container via the MCP tool that creating and updating issues with both string (date-type) and numeric custom field values work correctly
  • No unit tests were added because the underlying logic already handles both string and number values identically, and all existing tests pass

Closes #118

@katayama8000

katayama8000 commented May 25, 2026

Copy link
Copy Markdown
Collaborator

@Flupinochan thanks for the contribution.

@katayama8000
katayama8000 merged commit 03cc639 into nulab:main May 25, 2026
1 check passed
@Flupinochan

Copy link
Copy Markdown
Contributor Author

@katayama8000
Thank you for the review and merging it! I'm glad I could contribute.

@Flupinochan
Flupinochan deleted the fix/custom-field-string-support branch May 25, 2026 13:39
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.

Cannot set string values for custom fields when creating an issue via addIssue tool

2 participants