@@ -324,11 +324,11 @@ export const PlaneBlock: BlockConfig = {
324324 } ,
325325 {
326326 id : 'parentId' ,
327- title : 'Parent Work Item ID' ,
327+ title : 'Parent ID' ,
328328 type : 'short-input' ,
329- placeholder : 'Parent work item UUID' ,
329+ placeholder : 'Parent work item UUID (or parent label UUID when creating a label) ' ,
330330 mode : 'advanced' ,
331- condition : { field : 'operation' , value : [ ...WORK_ITEM_WRITE_OPS ] } ,
331+ condition : { field : 'operation' , value : [ ...WORK_ITEM_WRITE_OPS , 'plane_create_label' ] } ,
332332 } ,
333333 {
334334 id : 'estimatePointId' ,
@@ -495,14 +495,6 @@ export const PlaneBlock: BlockConfig = {
495495 placeholder : 'Hex color, e.g., #EF4444' ,
496496 condition : { field : 'operation' , value : 'plane_create_label' } ,
497497 } ,
498- {
499- id : 'labelParentId' ,
500- title : 'Parent Label ID' ,
501- type : 'short-input' ,
502- placeholder : 'Parent label UUID' ,
503- mode : 'advanced' ,
504- condition : { field : 'operation' , value : 'plane_create_label' } ,
505- } ,
506498 {
507499 id : 'cycleView' ,
508500 title : 'Cycles to Show' ,
@@ -631,7 +623,6 @@ export const PlaneBlock: BlockConfig = {
631623 projectIdentifier,
632624 linkUrl,
633625 linkTitle,
634- labelParentId,
635626 ...rest
636627 } = params
637628 const result : Record < string , unknown > = { ...rest }
@@ -651,17 +642,14 @@ export const PlaneBlock: BlockConfig = {
651642
652643 switch ( operation ) {
653644 case 'plane_get_work_item_by_identifier' :
654- result . identifier = workItemIdentifier
645+ if ( workItemIdentifier !== undefined ) result . identifier = workItemIdentifier
655646 break
656647 case 'plane_create_project' :
657- result . identifier = projectIdentifier
648+ if ( projectIdentifier !== undefined ) result . identifier = projectIdentifier
658649 break
659650 case 'plane_create_link' :
660- result . url = linkUrl
661- result . title = linkTitle
662- break
663- case 'plane_create_label' :
664- result . parentId = labelParentId
651+ if ( linkUrl !== undefined ) result . url = linkUrl
652+ if ( linkTitle !== undefined ) result . title = linkTitle
665653 break
666654 case 'plane_upload_attachment' : {
667655 const normalizedFile = normalizeFileInput ( file , { single : true } )
@@ -692,7 +680,7 @@ export const PlaneBlock: BlockConfig = {
692680 labelIds : { type : 'string' , description : 'Comma-separated label IDs' } ,
693681 startDate : { type : 'string' , description : 'Start date (YYYY-MM-DD)' } ,
694682 targetDate : { type : 'string' , description : 'Target date (YYYY-MM-DD)' } ,
695- parentId : { type : 'string' , description : 'Parent work item ID' } ,
683+ parentId : { type : 'string' , description : 'Parent work item ID, or parent label ID for labels ' } ,
696684 estimatePointId : { type : 'string' , description : 'Estimate point ID' } ,
697685 typeId : { type : 'string' , description : 'Work item type ID' } ,
698686 externalSource : { type : 'string' , description : 'External system name' } ,
@@ -711,7 +699,6 @@ export const PlaneBlock: BlockConfig = {
711699 defaultAssigneeId : { type : 'string' , description : 'Default assignee user ID' } ,
712700 timezone : { type : 'string' , description : 'Project timezone' } ,
713701 color : { type : 'string' , description : 'Label color (hex)' } ,
714- labelParentId : { type : 'string' , description : 'Parent label ID' } ,
715702 cycleView : { type : 'string' , description : 'Which cycles to list' } ,
716703 cycleId : { type : 'string' , description : 'Cycle ID' } ,
717704 moduleId : { type : 'string' , description : 'Module ID' } ,
0 commit comments