Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Eine neue Organisation in Jira Service Management erstellen
| `name` | string | Name der erstellten Organisation |
| `success` | boolean | Ob die Operation erfolgreich war |

### `jsm_add_organization_to_service_desk`
### `jsm_add_organization`

Eine Organisation zu einem Service Desk in Jira Service Management hinzufügen

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Create a new organization in Jira Service Management
| `name` | string | Name of the created organization |
| `success` | boolean | Whether the operation succeeded |

### `jsm_add_organization_to_service_desk`
### `jsm_add_organization`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: check that internationalized docs (zh, ja, fr, es, de) are updated - they still reference jsm_add_organization_to_service_desk

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/docs/content/docs/en/tools/jira_service_management.mdx
Line: 278:278

Comment:
**style:** check that internationalized docs (zh, ja, fr, es, de) are updated - they still reference `jsm_add_organization_to_service_desk`

How can I resolve this? If you propose a fix, please make it concise.


Add an organization to a service desk in Jira Service Management

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Crear una nueva organización en Jira Service Management
| `name` | string | Nombre de la organización creada |
| `success` | boolean | Si la operación tuvo éxito |

### `jsm_add_organization_to_service_desk`
### `jsm_add_organization`

Añadir una organización a un service desk en Jira Service Management

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Créer une nouvelle organisation dans Jira Service Management
| `name` | string | Nom de l'organisation créée |
| `success` | boolean | Indique si l'opération a réussi |

### `jsm_add_organization_to_service_desk`
### `jsm_add_organization`

Ajouter une organisation à un service desk dans Jira Service Management

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Jira Service Managementで新しい組織を作成する
| `name` | string | 作成された組織の名前 |
| `success` | boolean | 操作が成功したかどうか |

### `jsm_add_organization_to_service_desk`
### `jsm_add_organization`

Jira Service Managementのサービスデスクに組織を追加する

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
| `name` | string | 已创建组织的名称 |
| `success` | boolean | 操作是否成功 |

### `jsm_add_organization_to_service_desk`
### `jsm_add_organization`

在 Jira Service Management 中将组织添加到服务台

Expand Down
14 changes: 7 additions & 7 deletions apps/sim/blocks/blocks/jira_service_management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
{ label: 'Add Customer', id: 'add_customer' },
{ label: 'Get Organizations', id: 'get_organizations' },
{ label: 'Create Organization', id: 'create_organization' },
{ label: 'Add Organization to Service Desk', id: 'add_organization_to_service_desk' },
{ label: 'Add Organization', id: 'add_organization' },
{ label: 'Get Queues', id: 'get_queues' },
{ label: 'Get SLA', id: 'get_sla' },
{ label: 'Get Transitions', id: 'get_transitions' },
Expand Down Expand Up @@ -107,7 +107,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
'get_customers',
'add_customer',
'get_organizations',
'add_organization_to_service_desk',
'add_organization',
'get_queues',
],
},
Expand Down Expand Up @@ -270,7 +270,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
type: 'short-input',
required: true,
placeholder: 'Enter organization ID',
condition: { field: 'operation', value: 'add_organization_to_service_desk' },
condition: { field: 'operation', value: 'add_organization' },
},
{
id: 'participantAccountIds',
Expand Down Expand Up @@ -332,7 +332,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
'jsm_add_customer',
'jsm_get_organizations',
'jsm_create_organization',
'jsm_add_organization_to_service_desk',
'jsm_add_organization',
'jsm_get_queues',
'jsm_get_sla',
'jsm_get_transitions',
Expand Down Expand Up @@ -367,8 +367,8 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
return 'jsm_get_organizations'
case 'create_organization':
return 'jsm_create_organization'
case 'add_organization_to_service_desk':
return 'jsm_add_organization_to_service_desk'
case 'add_organization':
return 'jsm_add_organization'
case 'get_queues':
return 'jsm_get_queues'
case 'get_sla':
Expand Down Expand Up @@ -560,7 +560,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
...baseParams,
name: params.organizationName,
}
case 'add_organization_to_service_desk':
case 'add_organization':
if (!params.serviceDeskId) {
throw new Error('Service Desk ID is required')
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import type {
JsmAddOrganizationToServiceDeskParams,
JsmAddOrganizationToServiceDeskResponse,
} from '@/tools/jsm/types'
import type { JsmAddOrganizationParams, JsmAddOrganizationResponse } from '@/tools/jsm/types'
import type { ToolConfig } from '@/tools/types'

export const jsmAddOrganizationToServiceDeskTool: ToolConfig<
JsmAddOrganizationToServiceDeskParams,
JsmAddOrganizationToServiceDeskResponse
export const jsmAddOrganizationTool: ToolConfig<
JsmAddOrganizationParams,
JsmAddOrganizationResponse
> = {
id: 'jsm_add_organization_to_service_desk',
name: 'JSM Add Organization to Service Desk',
id: 'jsm_add_organization',
name: 'JSM Add Organization',
description: 'Add an organization to a service desk in Jira Service Management',
version: '1.0.0',

Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/jsm/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { jsmAddCommentTool } from '@/tools/jsm/add_comment'
import { jsmAddCustomerTool } from '@/tools/jsm/add_customer'
import { jsmAddOrganizationToServiceDeskTool } from '@/tools/jsm/add_organization_to_service_desk'
import { jsmAddOrganizationTool } from '@/tools/jsm/add_organization'
import { jsmAddParticipantsTool } from '@/tools/jsm/add_participants'
import { jsmAnswerApprovalTool } from '@/tools/jsm/answer_approval'
import { jsmCreateOrganizationTool } from '@/tools/jsm/create_organization'
Expand All @@ -22,7 +22,7 @@ import { jsmTransitionRequestTool } from '@/tools/jsm/transition_request'
export {
jsmAddCommentTool,
jsmAddCustomerTool,
jsmAddOrganizationToServiceDeskTool,
jsmAddOrganizationTool,
jsmAddParticipantsTool,
jsmAnswerApprovalTool,
jsmCreateOrganizationTool,
Expand Down
6 changes: 3 additions & 3 deletions apps/sim/tools/jsm/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ export interface JsmCreateOrganizationResponse extends ToolResponse {
}
}

export interface JsmAddOrganizationToServiceDeskParams extends JsmBaseParams {
export interface JsmAddOrganizationParams extends JsmBaseParams {
serviceDeskId: string
organizationId: string
}

export interface JsmAddOrganizationToServiceDeskResponse extends ToolResponse {
export interface JsmAddOrganizationResponse extends ToolResponse {
output: {
ts: string
serviceDeskId: string
Expand Down Expand Up @@ -462,7 +462,7 @@ export type JsmResponse =
| JsmTransitionRequestResponse
| JsmGetTransitionsResponse
| JsmCreateOrganizationResponse
| JsmAddOrganizationToServiceDeskResponse
| JsmAddOrganizationResponse
| JsmGetParticipantsResponse
| JsmAddParticipantsResponse
| JsmGetApprovalsResponse
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ import {
import {
jsmAddCommentTool,
jsmAddCustomerTool,
jsmAddOrganizationToServiceDeskTool,
jsmAddOrganizationTool,
jsmAddParticipantsTool,
jsmAnswerApprovalTool,
jsmCreateOrganizationTool,
Expand Down Expand Up @@ -1531,7 +1531,7 @@ export const tools: Record<string, ToolConfig> = {
jsm_add_customer: jsmAddCustomerTool,
jsm_get_organizations: jsmGetOrganizationsTool,
jsm_create_organization: jsmCreateOrganizationTool,
jsm_add_organization_to_service_desk: jsmAddOrganizationToServiceDeskTool,
jsm_add_organization: jsmAddOrganizationTool,
jsm_get_queues: jsmGetQueuesTool,
jsm_get_sla: jsmGetSlaTool,
jsm_get_transitions: jsmGetTransitionsTool,
Expand Down