@@ -31,7 +31,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
3131 { label : 'Add Customer' , id : 'add_customer' } ,
3232 { label : 'Get Organizations' , id : 'get_organizations' } ,
3333 { label : 'Create Organization' , id : 'create_organization' } ,
34- { label : 'Add Organization to Service Desk ' , id : 'add_organization_to_service_desk ' } ,
34+ { label : 'Add Organization' , id : 'add_organization ' } ,
3535 { label : 'Get Queues' , id : 'get_queues' } ,
3636 { label : 'Get SLA' , id : 'get_sla' } ,
3737 { label : 'Get Transitions' , id : 'get_transitions' } ,
@@ -107,7 +107,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
107107 'get_customers' ,
108108 'add_customer' ,
109109 'get_organizations' ,
110- 'add_organization_to_service_desk ' ,
110+ 'add_organization ' ,
111111 'get_queues' ,
112112 ] ,
113113 } ,
@@ -270,7 +270,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
270270 type : 'short-input' ,
271271 required : true ,
272272 placeholder : 'Enter organization ID' ,
273- condition : { field : 'operation' , value : 'add_organization_to_service_desk ' } ,
273+ condition : { field : 'operation' , value : 'add_organization ' } ,
274274 } ,
275275 {
276276 id : 'participantAccountIds' ,
@@ -332,7 +332,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
332332 'jsm_add_customer' ,
333333 'jsm_get_organizations' ,
334334 'jsm_create_organization' ,
335- 'jsm_add_organization_to_service_desk ' ,
335+ 'jsm_add_organization ' ,
336336 'jsm_get_queues' ,
337337 'jsm_get_sla' ,
338338 'jsm_get_transitions' ,
@@ -367,8 +367,8 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
367367 return 'jsm_get_organizations'
368368 case 'create_organization' :
369369 return 'jsm_create_organization'
370- case 'add_organization_to_service_desk ' :
371- return 'jsm_add_organization_to_service_desk '
370+ case 'add_organization ' :
371+ return 'jsm_add_organization '
372372 case 'get_queues' :
373373 return 'jsm_get_queues'
374374 case 'get_sla' :
@@ -560,7 +560,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
560560 ...baseParams ,
561561 name : params . organizationName ,
562562 }
563- case 'add_organization_to_service_desk ' :
563+ case 'add_organization ' :
564564 if ( ! params . serviceDeskId ) {
565565 throw new Error ( 'Service Desk ID is required' )
566566 }
0 commit comments