-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add ticket tag management to Zendesk integration #17609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
michelle0927
merged 7 commits into
PipedreamHQ:master
from
seynadio:zendesk-ticket-tags-clean
Jul 22, 2025
+302
−15
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f5a832b
Add ticket tag management to Zendesk integration
seynadio aa64f52
Fix swapped HTTP methods for Zendesk ticket tag operations
Afstkla 6e2ec9b
Update component versions and fix linting errors
Afstkla 8d0510b
whitespace and versions
Afstkla 3e8c359
versions, eslint
michelle0927 814c0e0
Merge remote-tracking branch 'upstream/master' into zendesk-ticket-ta…
michelle0927 a25bdfc
versions
michelle0927 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
components/zendesk/actions/add-ticket-tags/add-ticket-tags.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import app from "../../zendesk.app.mjs"; | ||
|
||
export default { | ||
key: "zendesk-add-ticket-tags", | ||
name: "Add Ticket Tags", | ||
description: "Add tags to a ticket (appends to existing tags). [See the documentation](https://developer.zendesk.com/api-reference/ticketing/ticket-management/tags/#add-tags).", | ||
type: "action", | ||
version: "0.0.1", | ||
props: { | ||
app, | ||
ticketId: { | ||
propDefinition: [ | ||
app, | ||
"ticketId", | ||
], | ||
}, | ||
ticketTags: { | ||
propDefinition: [ | ||
app, | ||
"ticketTags", | ||
], | ||
description: "Array of tags to add to the ticket. These will be appended to any existing tags.", | ||
}, | ||
customSubdomain: { | ||
propDefinition: [ | ||
app, | ||
"customSubdomain", | ||
], | ||
}, | ||
}, | ||
async run({ $: step }) { | ||
const { | ||
ticketId, | ||
ticketTags, | ||
customSubdomain, | ||
} = this; | ||
|
||
const response = await this.app.addTicketTags({ | ||
step, | ||
ticketId, | ||
tags: ticketTags, | ||
customSubdomain, | ||
}); | ||
|
||
step.export("$summary", `Successfully added ${ticketTags.length} tag(s) to ticket ${ticketId}`); | ||
return response; | ||
}, | ||
}; |
48 changes: 48 additions & 0 deletions
48
components/zendesk/actions/remove-ticket-tags/remove-ticket-tags.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import app from "../../zendesk.app.mjs"; | ||
|
||
export default { | ||
key: "zendesk-remove-ticket-tags", | ||
name: "Remove Ticket Tags", | ||
description: "Remove specific tags from a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/ticket-management/tags/#remove-tags).", | ||
type: "action", | ||
version: "0.0.1", | ||
props: { | ||
app, | ||
ticketId: { | ||
propDefinition: [ | ||
app, | ||
"ticketId", | ||
], | ||
}, | ||
ticketTags: { | ||
propDefinition: [ | ||
app, | ||
"ticketTags", | ||
], | ||
description: "Array of tags to remove from the ticket.", | ||
}, | ||
customSubdomain: { | ||
propDefinition: [ | ||
app, | ||
"customSubdomain", | ||
], | ||
}, | ||
}, | ||
async run({ $: step }) { | ||
const { | ||
ticketId, | ||
ticketTags, | ||
customSubdomain, | ||
} = this; | ||
|
||
const response = await this.app.removeTicketTags({ | ||
step, | ||
ticketId, | ||
tags: ticketTags, | ||
customSubdomain, | ||
}); | ||
|
||
step.export("$summary", `Successfully removed ${ticketTags.length} tag(s) from ticket ${ticketId}`); | ||
return response; | ||
}, | ||
}; |
47 changes: 47 additions & 0 deletions
47
components/zendesk/actions/set-ticket-tags/set-ticket-tags.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import app from "../../zendesk.app.mjs"; | ||
|
||
export default { | ||
key: "zendesk-set-ticket-tags", | ||
name: "Set Ticket Tags", | ||
description: "Set tags on a ticket (replaces all existing tags). [See the documentation](https://developer.zendesk.com/api-reference/ticketing/ticket-management/tags/#set-tags).", | ||
type: "action", | ||
version: "0.0.1", | ||
props: { | ||
app, | ||
ticketId: { | ||
propDefinition: [ | ||
app, | ||
"ticketId", | ||
], | ||
}, | ||
ticketTags: { | ||
propDefinition: [ | ||
app, | ||
"ticketTags", | ||
], | ||
}, | ||
customSubdomain: { | ||
propDefinition: [ | ||
app, | ||
"customSubdomain", | ||
], | ||
}, | ||
}, | ||
async run({ $: step }) { | ||
const { | ||
ticketId, | ||
ticketTags, | ||
customSubdomain, | ||
} = this; | ||
|
||
const response = await this.app.setTicketTags({ | ||
step, | ||
ticketId, | ||
tags: ticketTags, | ||
customSubdomain, | ||
}); | ||
|
||
step.export("$summary", `Successfully set ${ticketTags.length} tag(s) on ticket ${ticketId}`); | ||
return response; | ||
}, | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant case clause.
The
case "set":
is redundant since it performs the same action as thedefault
case. This creates unnecessary code duplication.Apply this diff to fix the issue:
📝 Committable suggestion
🧰 Tools
🪛 Biome (1.9.4)
[error] 134-134: Useless case clause.
because the default clause is present:
Unsafe fix: Remove the useless case.
(lint/complexity/noUselessSwitchCase)
🤖 Prompt for AI Agents