Skip to content

Commit 57e6a0b

Browse files
authored
fixed jira output (#2392)
1 parent b72e111 commit 57e6a0b

23 files changed

+86
-183
lines changed

apps/sim/blocks/blocks/jira.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
762762
outputs: {
763763
// Common outputs across all Jira operations
764764
ts: { type: 'string', description: 'Timestamp of the operation' },
765-
success: { type: 'boolean', description: 'Whether the operation was successful' },
766765

767766
// jira_retrieve (read) outputs
768767
issueKey: { type: 'string', description: 'Issue key (e.g., PROJ-123)' },

apps/sim/tools/jira/add_comment.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,9 @@ export const jiraAddCommentTool: ToolConfig<JiraAddCommentParams, JiraAddComment
163163
},
164164

165165
outputs: {
166-
success: {
167-
type: 'boolean',
168-
description: 'Operation success status',
169-
},
170-
output: {
171-
type: 'object',
172-
description:
173-
'Comment details with timestamp, issue key, comment ID, body, and success status',
174-
},
166+
ts: { type: 'string', description: 'Timestamp of the operation' },
167+
issueKey: { type: 'string', description: 'Issue key the comment was added to' },
168+
commentId: { type: 'string', description: 'Created comment ID' },
169+
body: { type: 'string', description: 'Comment text content' },
175170
},
176171
}

apps/sim/tools/jira/add_watcher.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,8 @@ export const jiraAddWatcherTool: ToolConfig<JiraAddWatcherParams, JiraAddWatcher
141141
},
142142

143143
outputs: {
144-
success: {
145-
type: 'boolean',
146-
description: 'Operation success status',
147-
},
148-
output: {
149-
type: 'object',
150-
description:
151-
'Watcher details with timestamp, issue key, watcher account ID, and success status',
152-
},
144+
ts: { type: 'string', description: 'Timestamp of the operation' },
145+
issueKey: { type: 'string', description: 'Issue key' },
146+
watcherAccountId: { type: 'string', description: 'Added watcher account ID' },
153147
},
154148
}

apps/sim/tools/jira/add_worklog.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,9 @@ export const jiraAddWorklogTool: ToolConfig<JiraAddWorklogParams, JiraAddWorklog
191191
},
192192

193193
outputs: {
194-
success: {
195-
type: 'boolean',
196-
description: 'Operation success status',
197-
},
198-
output: {
199-
type: 'object',
200-
description:
201-
'Worklog details with timestamp, issue key, worklog ID, time spent in seconds, and success status',
202-
},
194+
ts: { type: 'string', description: 'Timestamp of the operation' },
195+
issueKey: { type: 'string', description: 'Issue key the worklog was added to' },
196+
worklogId: { type: 'string', description: 'Created worklog ID' },
197+
timeSpentSeconds: { type: 'number', description: 'Time spent in seconds' },
203198
},
204199
}

apps/sim/tools/jira/assign_issue.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,8 @@ export const jiraAssignIssueTool: ToolConfig<JiraAssignIssueParams, JiraAssignIs
144144
},
145145

146146
outputs: {
147-
success: {
148-
type: 'boolean',
149-
description: 'Operation success status',
150-
},
151-
output: {
152-
type: 'object',
153-
description: 'Assignment details with timestamp, issue key, assignee ID, and success status',
154-
},
147+
ts: { type: 'string', description: 'Timestamp of the operation' },
148+
issueKey: { type: 'string', description: 'Issue key that was assigned' },
149+
assigneeId: { type: 'string', description: 'Account ID of the assignee' },
155150
},
156151
}

apps/sim/tools/jira/bulk_read.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,10 @@ export const jiraBulkRetrieveTool: ToolConfig<JiraRetrieveBulkParams, JiraRetrie
204204
},
205205

206206
outputs: {
207-
success: {
208-
type: 'boolean',
209-
description: 'Operation success status',
210-
},
211-
output: {
207+
issues: {
212208
type: 'array',
213-
description: 'Array of Jira issues with summary, description, created and updated timestamps',
209+
description:
210+
'Array of Jira issues with ts, summary, description, created, and updated timestamps',
214211
},
215212
},
216213
}

apps/sim/tools/jira/create_issue_link.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,10 @@ export const jiraCreateIssueLinkTool: ToolConfig<
201201
},
202202

203203
outputs: {
204-
success: {
205-
type: 'boolean',
206-
description: 'Operation success status',
207-
},
208-
output: {
209-
type: 'object',
210-
description:
211-
'Issue link details with timestamp, inward issue key, outward issue key, link type, and success status',
212-
},
204+
ts: { type: 'string', description: 'Timestamp of the operation' },
205+
inwardIssue: { type: 'string', description: 'Inward issue key' },
206+
outwardIssue: { type: 'string', description: 'Outward issue key' },
207+
linkType: { type: 'string', description: 'Type of issue link' },
208+
linkId: { type: 'string', description: 'Created link ID' },
213209
},
214210
}

apps/sim/tools/jira/delete_attachment.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,7 @@ export const jiraDeleteAttachmentTool: ToolConfig<
127127
},
128128

129129
outputs: {
130-
success: {
131-
type: 'boolean',
132-
description: 'Operation success status',
133-
},
134-
output: {
135-
type: 'object',
136-
description: 'Deletion details with timestamp, attachment ID, and success status',
137-
},
130+
ts: { type: 'string', description: 'Timestamp of the operation' },
131+
attachmentId: { type: 'string', description: 'Deleted attachment ID' },
138132
},
139133
}

apps/sim/tools/jira/delete_comment.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,8 @@ export const jiraDeleteCommentTool: ToolConfig<JiraDeleteCommentParams, JiraDele
135135
},
136136

137137
outputs: {
138-
success: {
139-
type: 'boolean',
140-
description: 'Operation success status',
141-
},
142-
output: {
143-
type: 'object',
144-
description: 'Deletion details with timestamp, issue key, comment ID, and success status',
145-
},
138+
ts: { type: 'string', description: 'Timestamp of the operation' },
139+
issueKey: { type: 'string', description: 'Issue key' },
140+
commentId: { type: 'string', description: 'Deleted comment ID' },
146141
},
147142
}

apps/sim/tools/jira/delete_issue.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,7 @@ export const jiraDeleteIssueTool: ToolConfig<JiraDeleteIssueParams, JiraDeleteIs
170170
},
171171

172172
outputs: {
173-
success: {
174-
type: 'boolean',
175-
description: 'Operation success status',
176-
},
177-
output: {
178-
type: 'object',
179-
description: 'Deleted issue details with timestamp, issue key, and success status',
180-
},
173+
ts: { type: 'string', description: 'Timestamp of the operation' },
174+
issueKey: { type: 'string', description: 'Deleted issue key' },
181175
},
182176
}

0 commit comments

Comments
 (0)