Skip to content

Commit bce638d

Browse files
waleedlatif1claude
andauthored
fix(tools): add Atlassian error extractor to all Jira, JSM, and Confluence tools (#4085)
* fix(tools): add Atlassian error extractor to all Jira, JSM, and Confluence tools Wire up the existing `atlassian-errors` error extractor to all 95 Atlassian tool configs so the executor surfaces meaningful error messages instead of generic status codes. Also fix the extractor itself to handle all three Atlassian error response formats: `errorMessage` (JSM), `errorMessages` array (Jira), and `message` (Confluence). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(tools): lint formatting fix for error extractor * fix(tools): handle all Atlassian error formats in error extractor Add RFC 7807 errors[].title format (Confluence v2, Forms/ProForma API) and Jira field-level errors object to the atlassian-errors extractor. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 05b5588 commit bce638d

File tree

96 files changed

+225
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+225
-3
lines changed

apps/sim/tools/confluence/add_label.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export const confluenceAddLabelTool: ToolConfig<
3434
provider: 'confluence',
3535
},
3636

37+
errorExtractor: 'atlassian-errors',
38+
3739
params: {
3840
accessToken: {
3941
type: 'string',

apps/sim/tools/confluence/create_blogpost.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export const confluenceCreateBlogPostTool: ToolConfig<
4444
provider: 'confluence',
4545
},
4646

47+
errorExtractor: 'atlassian-errors',
48+
4749
params: {
4850
accessToken: {
4951
type: 'string',

apps/sim/tools/confluence/create_comment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const confluenceCreateCommentTool: ToolConfig<
3131
provider: 'confluence',
3232
},
3333

34+
errorExtractor: 'atlassian-errors',
35+
3436
params: {
3537
accessToken: {
3638
type: 'string',

apps/sim/tools/confluence/create_page.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export const confluenceCreatePageTool: ToolConfig<
4040
provider: 'confluence',
4141
},
4242

43+
errorExtractor: 'atlassian-errors',
44+
4345
params: {
4446
accessToken: {
4547
type: 'string',

apps/sim/tools/confluence/create_page_property.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export const confluenceCreatePagePropertyTool: ToolConfig<
3838
provider: 'confluence',
3939
},
4040

41+
errorExtractor: 'atlassian-errors',
42+
4143
params: {
4244
accessToken: {
4345
type: 'string',

apps/sim/tools/confluence/create_space.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export const confluenceCreateSpaceTool: ToolConfig<
3939
provider: 'confluence',
4040
},
4141

42+
errorExtractor: 'atlassian-errors',
43+
4244
params: {
4345
accessToken: {
4446
type: 'string',

apps/sim/tools/confluence/create_space_property.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export const confluenceCreateSpacePropertyTool: ToolConfig<
3535
provider: 'confluence',
3636
},
3737

38+
errorExtractor: 'atlassian-errors',
39+
3840
params: {
3941
accessToken: {
4042
type: 'string',

apps/sim/tools/confluence/delete_attachment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const confluenceDeleteAttachmentTool: ToolConfig<
3030
provider: 'confluence',
3131
},
3232

33+
errorExtractor: 'atlassian-errors',
34+
3335
params: {
3436
accessToken: {
3537
type: 'string',

apps/sim/tools/confluence/delete_blogpost.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const confluenceDeleteBlogPostTool: ToolConfig<
3131
provider: 'confluence',
3232
},
3333

34+
errorExtractor: 'atlassian-errors',
35+
3436
params: {
3537
accessToken: {
3638
type: 'string',

apps/sim/tools/confluence/delete_comment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const confluenceDeleteCommentTool: ToolConfig<
3030
provider: 'confluence',
3131
},
3232

33+
errorExtractor: 'atlassian-errors',
34+
3335
params: {
3436
accessToken: {
3537
type: 'string',

0 commit comments

Comments
 (0)