fixed jira output

This commit is contained in:
aadamgough
2025-12-14 21:06:28 -08:00
parent 431f206930
commit 5d3b216922
23 changed files with 86 additions and 183 deletions

View File

@@ -762,7 +762,6 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
outputs: {
// Common outputs across all Jira operations
ts: { type: 'string', description: 'Timestamp of the operation' },
success: { type: 'boolean', description: 'Whether the operation was successful' },
// jira_retrieve (read) outputs
issueKey: { type: 'string', description: 'Issue key (e.g., PROJ-123)' },

View File

@@ -163,14 +163,9 @@ export const jiraAddCommentTool: ToolConfig<JiraAddCommentParams, JiraAddComment
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Comment details with timestamp, issue key, comment ID, body, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key the comment was added to' },
commentId: { type: 'string', description: 'Created comment ID' },
body: { type: 'string', description: 'Comment text content' },
},
}

View File

@@ -141,14 +141,8 @@ export const jiraAddWatcherTool: ToolConfig<JiraAddWatcherParams, JiraAddWatcher
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Watcher details with timestamp, issue key, watcher account ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
watcherAccountId: { type: 'string', description: 'Added watcher account ID' },
},
}

View File

@@ -191,14 +191,9 @@ export const jiraAddWorklogTool: ToolConfig<JiraAddWorklogParams, JiraAddWorklog
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Worklog details with timestamp, issue key, worklog ID, time spent in seconds, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key the worklog was added to' },
worklogId: { type: 'string', description: 'Created worklog ID' },
timeSpentSeconds: { type: 'number', description: 'Time spent in seconds' },
},
}

View File

@@ -144,13 +144,8 @@ export const jiraAssignIssueTool: ToolConfig<JiraAssignIssueParams, JiraAssignIs
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Assignment details with timestamp, issue key, assignee ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key that was assigned' },
assigneeId: { type: 'string', description: 'Account ID of the assignee' },
},
}

View File

@@ -204,13 +204,10 @@ export const jiraBulkRetrieveTool: ToolConfig<JiraRetrieveBulkParams, JiraRetrie
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
issues: {
type: 'array',
description: 'Array of Jira issues with summary, description, created and updated timestamps',
description:
'Array of Jira issues with ts, summary, description, created, and updated timestamps',
},
},
}

View File

@@ -201,14 +201,10 @@ export const jiraCreateIssueLinkTool: ToolConfig<
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Issue link details with timestamp, inward issue key, outward issue key, link type, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
inwardIssue: { type: 'string', description: 'Inward issue key' },
outwardIssue: { type: 'string', description: 'Outward issue key' },
linkType: { type: 'string', description: 'Type of issue link' },
linkId: { type: 'string', description: 'Created link ID' },
},
}

View File

@@ -127,13 +127,7 @@ export const jiraDeleteAttachmentTool: ToolConfig<
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Deletion details with timestamp, attachment ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
attachmentId: { type: 'string', description: 'Deleted attachment ID' },
},
}

View File

@@ -135,13 +135,8 @@ export const jiraDeleteCommentTool: ToolConfig<JiraDeleteCommentParams, JiraDele
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Deletion details with timestamp, issue key, comment ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
commentId: { type: 'string', description: 'Deleted comment ID' },
},
}

View File

@@ -170,13 +170,7 @@ export const jiraDeleteIssueTool: ToolConfig<JiraDeleteIssueParams, JiraDeleteIs
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Deleted issue details with timestamp, issue key, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Deleted issue key' },
},
}

View File

@@ -127,13 +127,7 @@ export const jiraDeleteIssueLinkTool: ToolConfig<
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Deletion details with timestamp, link ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
linkId: { type: 'string', description: 'Deleted link ID' },
},
}

View File

@@ -135,13 +135,8 @@ export const jiraDeleteWorklogTool: ToolConfig<JiraDeleteWorklogParams, JiraDele
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Deletion details with timestamp, issue key, worklog ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
worklogId: { type: 'string', description: 'Deleted worklog ID' },
},
}

View File

@@ -131,13 +131,11 @@ export const jiraGetAttachmentsTool: ToolConfig<
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Attachments data with timestamp, issue key, and array of attachments',
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
attachments: {
type: 'array',
description: 'Array of attachments with id, filename, size, mimeType, created, author',
},
},
}

View File

@@ -179,13 +179,12 @@ export const jiraGetCommentsTool: ToolConfig<JiraGetCommentsParams, JiraGetComme
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Comments data with timestamp, issue key, total count, and array of comments',
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
total: { type: 'number', description: 'Total number of comments' },
comments: {
type: 'array',
description: 'Array of comments with id, author, body, created, updated',
},
},
}

View File

@@ -188,13 +188,13 @@ export const jiraGetWorklogsTool: ToolConfig<JiraGetWorklogsParams, JiraGetWorkl
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description: 'Worklogs data with timestamp, issue key, total count, and array of worklogs',
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
total: { type: 'number', description: 'Total number of worklogs' },
worklogs: {
type: 'array',
description:
'Array of worklogs with id, author, timeSpentSeconds, timeSpent, comment, created, updated, started',
},
},
}

View File

@@ -135,14 +135,8 @@ export const jiraRemoveWatcherTool: ToolConfig<JiraRemoveWatcherParams, JiraRemo
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Removal details with timestamp, issue key, watcher account ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
watcherAccountId: { type: 'string', description: 'Removed watcher account ID' },
},
}

View File

@@ -229,14 +229,12 @@ export const jiraRetrieveTool: ToolConfig<JiraRetrieveParams, JiraRetrieveRespon
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Jira issue details with issue key, summary, description, created and updated timestamps',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key (e.g., PROJ-123)' },
summary: { type: 'string', description: 'Issue summary' },
description: { type: 'json', description: 'Issue description content' },
created: { type: 'string', description: 'Issue creation timestamp' },
updated: { type: 'string', description: 'Issue last updated timestamp' },
issue: { type: 'json', description: 'Complete issue object with all fields' },
},
}

View File

@@ -172,14 +172,13 @@ export const jiraSearchIssuesTool: ToolConfig<JiraSearchIssuesParams, JiraSearch
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Search results with timestamp, total count, pagination details, and array of matching issues',
ts: { type: 'string', description: 'Timestamp of the operation' },
total: { type: 'number', description: 'Total number of matching issues' },
startAt: { type: 'number', description: 'Pagination start index' },
maxResults: { type: 'number', description: 'Maximum results per page' },
issues: {
type: 'array',
description: 'Array of matching issues with key, summary, status, assignee, created, updated',
},
},
}

View File

@@ -200,14 +200,8 @@ export const jiraTransitionIssueTool: ToolConfig<
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Transition details with timestamp, issue key, transition ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key that was transitioned' },
transitionId: { type: 'string', description: 'Applied transition ID' },
},
}

View File

@@ -136,14 +136,8 @@ export const jiraUpdateTool: ToolConfig<JiraUpdateParams, JiraUpdateResponse> =
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Updated Jira issue details with timestamp, issue key, summary, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Updated issue key (e.g., PROJ-123)' },
summary: { type: 'string', description: 'Issue summary after update' },
},
}

View File

@@ -170,14 +170,9 @@ export const jiraUpdateCommentTool: ToolConfig<JiraUpdateCommentParams, JiraUpda
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Updated comment details with timestamp, issue key, comment ID, body text, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
commentId: { type: 'string', description: 'Updated comment ID' },
body: { type: 'string', description: 'Updated comment text' },
},
}

View File

@@ -188,14 +188,8 @@ export const jiraUpdateWorklogTool: ToolConfig<JiraUpdateWorklogParams, JiraUpda
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Worklog update details with timestamp, issue key, worklog ID, and success status',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Issue key' },
worklogId: { type: 'string', description: 'Updated worklog ID' },
},
}

View File

@@ -130,14 +130,9 @@ export const jiraWriteTool: ToolConfig<JiraWriteParams, JiraWriteResponse> = {
},
outputs: {
success: {
type: 'boolean',
description: 'Operation success status',
},
output: {
type: 'object',
description:
'Created Jira issue details with timestamp, issue key, summary, success status, and URL',
},
ts: { type: 'string', description: 'Timestamp of the operation' },
issueKey: { type: 'string', description: 'Created issue key (e.g., PROJ-123)' },
summary: { type: 'string', description: 'Issue summary' },
url: { type: 'string', description: 'URL to the created issue' },
},
}