From 3d17015c36050ed4a427d3d9dfd9879987f3c3a1 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 9 Apr 2026 22:30:52 -0700 Subject: [PATCH 1/3] feat(tools): add fields parameter to Jira search block Expose the Jira REST API `fields` parameter on the search operation, allowing users to specify which fields to return per issue. This reduces response payload size by 10-15x, preventing 10MB workflow state limit errors for users with high ticket volume. Co-Authored-By: Claude Opus 4.6 --- apps/sim/blocks/blocks/jira.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/sim/blocks/blocks/jira.ts b/apps/sim/blocks/blocks/jira.ts index 092677ab904..c6c93e4b3d2 100644 --- a/apps/sim/blocks/blocks/jira.ts +++ b/apps/sim/blocks/blocks/jira.ts @@ -479,6 +479,13 @@ Return ONLY the JQL query - no explanations or markdown formatting.`, placeholder: 'Maximum results to return (default: 50)', condition: { field: 'operation', value: ['search', 'get_comments', 'get_worklogs'] }, }, + { + id: 'fields', + title: 'Fields', + type: 'short-input', + placeholder: 'Comma-separated fields to return (e.g., key,summary,status)', + condition: { field: 'operation', value: 'search' }, + }, // Comment fields { id: 'commentBody', @@ -922,6 +929,12 @@ Return ONLY the comment text - no explanations.`, jql: params.jql, nextPageToken: params.nextPageToken || undefined, maxResults: params.maxResults ? Number.parseInt(params.maxResults) : undefined, + fields: params.fields + ? params.fields + .split(',') + .map((f: string) => f.trim()) + .filter(Boolean) + : undefined, } } case 'add_comment': { @@ -1114,6 +1127,10 @@ Return ONLY the comment text - no explanations.`, startAt: { type: 'string', description: 'Pagination start index' }, jql: { type: 'string', description: 'JQL (Jira Query Language) search query' }, maxResults: { type: 'string', description: 'Maximum number of results to return' }, + fields: { + type: 'string', + description: 'Comma-separated field names to return (e.g., key,summary,status)', + }, // Comment operation inputs commentBody: { type: 'string', description: 'Text content for comment operations' }, commentId: { type: 'string', description: 'Comment ID for update/delete operations' }, From e40021df7291d1f42a5de150690884bc500a56a4 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 9 Apr 2026 22:34:29 -0700 Subject: [PATCH 2/3] style(tools): remove redundant type annotation in fields map callback Co-Authored-By: Claude Opus 4.6 --- apps/sim/blocks/blocks/jira.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/blocks/blocks/jira.ts b/apps/sim/blocks/blocks/jira.ts index c6c93e4b3d2..49f19175a46 100644 --- a/apps/sim/blocks/blocks/jira.ts +++ b/apps/sim/blocks/blocks/jira.ts @@ -932,7 +932,7 @@ Return ONLY the comment text - no explanations.`, fields: params.fields ? params.fields .split(',') - .map((f: string) => f.trim()) + .map((f) => f.trim()) .filter(Boolean) : undefined, } From 987f72354ed753d738701c31516fab4e8593e8ac Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 9 Apr 2026 22:40:39 -0700 Subject: [PATCH 3/3] fix(tools): restore type annotation for implicit any in params callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The params object is untyped, so TypeScript cannot infer the string element type from .split() — the explicit annotation is required. Co-Authored-By: Claude Opus 4.6 --- apps/sim/blocks/blocks/jira.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/blocks/blocks/jira.ts b/apps/sim/blocks/blocks/jira.ts index 49f19175a46..c6c93e4b3d2 100644 --- a/apps/sim/blocks/blocks/jira.ts +++ b/apps/sim/blocks/blocks/jira.ts @@ -932,7 +932,7 @@ Return ONLY the comment text - no explanations.`, fields: params.fields ? params.fields .split(',') - .map((f) => f.trim()) + .map((f: string) => f.trim()) .filter(Boolean) : undefined, }