Skip to content

Commit 3d17015

Browse files
waleedlatif1claude
andcommitted
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 <noreply@anthropic.com>
1 parent 476669f commit 3d17015

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

apps/sim/blocks/blocks/jira.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,13 @@ Return ONLY the JQL query - no explanations or markdown formatting.`,
479479
placeholder: 'Maximum results to return (default: 50)',
480480
condition: { field: 'operation', value: ['search', 'get_comments', 'get_worklogs'] },
481481
},
482+
{
483+
id: 'fields',
484+
title: 'Fields',
485+
type: 'short-input',
486+
placeholder: 'Comma-separated fields to return (e.g., key,summary,status)',
487+
condition: { field: 'operation', value: 'search' },
488+
},
482489
// Comment fields
483490
{
484491
id: 'commentBody',
@@ -922,6 +929,12 @@ Return ONLY the comment text - no explanations.`,
922929
jql: params.jql,
923930
nextPageToken: params.nextPageToken || undefined,
924931
maxResults: params.maxResults ? Number.parseInt(params.maxResults) : undefined,
932+
fields: params.fields
933+
? params.fields
934+
.split(',')
935+
.map((f: string) => f.trim())
936+
.filter(Boolean)
937+
: undefined,
925938
}
926939
}
927940
case 'add_comment': {
@@ -1114,6 +1127,10 @@ Return ONLY the comment text - no explanations.`,
11141127
startAt: { type: 'string', description: 'Pagination start index' },
11151128
jql: { type: 'string', description: 'JQL (Jira Query Language) search query' },
11161129
maxResults: { type: 'string', description: 'Maximum number of results to return' },
1130+
fields: {
1131+
type: 'string',
1132+
description: 'Comma-separated field names to return (e.g., key,summary,status)',
1133+
},
11171134
// Comment operation inputs
11181135
commentBody: { type: 'string', description: 'Text content for comment operations' },
11191136
commentId: { type: 'string', description: 'Comment ID for update/delete operations' },

0 commit comments

Comments
 (0)