Skip to content

Commit 9e59b60

Browse files
waleedlatif1claude
andcommitted
fix(blocks): remove projectId dependsOn gate for update fields, require content for blog post creation
Jira: Remove dependsOn projectId from shared write/update fields — projectId is not required for update so the gate would disable all update fields when no project is selected. Write-only fields (issueType, parentIssue, reporter) retain the gate since projectId is required for create. Confluence V2: Add create_blogpost to content required condition — backend Zod schema enforces content for blog post creation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f141019 commit 9e59b60

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

apps/sim/blocks/blocks/confluence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
779779
title: 'Content',
780780
type: 'long-input',
781781
placeholder: 'Enter content',
782-
required: { field: 'operation', value: 'create' },
782+
required: { field: 'operation', value: ['create', 'create_blogpost'] },
783783
condition: {
784784
field: 'operation',
785785
value: ['create', 'update', 'create_blogpost', 'update_blogpost'],

apps/sim/blocks/blocks/jira.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
220220
type: 'short-input',
221221
required: { field: 'operation', value: 'write' },
222222
placeholder: 'Enter new summary for the issue',
223-
dependsOn: ['projectId'],
224223
condition: { field: 'operation', value: ['update', 'write'] },
225224
wandConfig: {
226225
enabled: true,
@@ -240,7 +239,6 @@ Return ONLY the summary text - no explanations.`,
240239
title: 'New Description',
241240
type: 'long-input',
242241
placeholder: 'Enter new description for the issue',
243-
dependsOn: ['projectId'],
244242
condition: { field: 'operation', value: ['update', 'write'] },
245243
wandConfig: {
246244
enabled: true,
@@ -279,31 +277,27 @@ Return ONLY the description text - no explanations.`,
279277
title: 'Assignee Account ID',
280278
type: 'short-input',
281279
placeholder: 'Assignee account ID (e.g., 5b109f2e9729b51b54dc274d)',
282-
dependsOn: ['projectId'],
283280
condition: { field: 'operation', value: ['write', 'update'] },
284281
},
285282
{
286283
id: 'priority',
287284
title: 'Priority',
288285
type: 'short-input',
289286
placeholder: 'Priority ID or name (e.g., "10000" or "High")',
290-
dependsOn: ['projectId'],
291287
condition: { field: 'operation', value: ['write', 'update'] },
292288
},
293289
{
294290
id: 'labels',
295291
title: 'Labels',
296292
type: 'short-input',
297293
placeholder: 'Comma-separated labels (e.g., bug, urgent)',
298-
dependsOn: ['projectId'],
299294
condition: { field: 'operation', value: ['write', 'update'] },
300295
},
301296
{
302297
id: 'duedate',
303298
title: 'Due Date',
304299
type: 'short-input',
305300
placeholder: 'YYYY-MM-DD (e.g., 2024-12-31)',
306-
dependsOn: ['projectId'],
307301
condition: { field: 'operation', value: ['write', 'update'] },
308302
wandConfig: {
309303
enabled: true,
@@ -332,39 +326,34 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
332326
title: 'Environment',
333327
type: 'long-input',
334328
placeholder: 'Environment information (e.g., Production, Staging)',
335-
dependsOn: ['projectId'],
336329
condition: { field: 'operation', value: ['write', 'update'] },
337330
},
338331
{
339332
id: 'customFieldId',
340333
title: 'Custom Field ID',
341334
type: 'short-input',
342335
placeholder: 'e.g., customfield_10001 or 10001',
343-
dependsOn: ['projectId'],
344336
condition: { field: 'operation', value: ['write', 'update'] },
345337
},
346338
{
347339
id: 'customFieldValue',
348340
title: 'Custom Field Value',
349341
type: 'short-input',
350342
placeholder: 'Value for the custom field',
351-
dependsOn: ['projectId'],
352343
condition: { field: 'operation', value: ['write', 'update'] },
353344
},
354345
{
355346
id: 'components',
356347
title: 'Components',
357348
type: 'short-input',
358349
placeholder: 'Comma-separated component names',
359-
dependsOn: ['projectId'],
360350
condition: { field: 'operation', value: ['write', 'update'] },
361351
},
362352
{
363353
id: 'fixVersions',
364354
title: 'Fix Versions',
365355
type: 'short-input',
366356
placeholder: 'Comma-separated fix version names',
367-
dependsOn: ['projectId'],
368357
condition: { field: 'operation', value: ['write', 'update'] },
369358
},
370359
{

0 commit comments

Comments
 (0)