Skip to content

17497-zendesk #17499

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
merged 7 commits into from
Jul 10, 2025
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
2 changes: 1 addition & 1 deletion components/zendesk/actions/create-ticket/create-ticket.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Create Ticket",
description: "Creates a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#create-ticket).",
type: "action",
version: "0.1.3",
version: "0.1.4",
props: {
app,
ticketCommentBody: {
Expand Down
2 changes: 1 addition & 1 deletion components/zendesk/actions/delete-ticket/delete-ticket.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Delete Ticket",
description: "Deletes a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#delete-ticket).",
type: "action",
version: "0.1.3",
version: "0.1.4",
props: {
app,
ticketId: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Ticket Info",
description: "Retrieves information about a specific ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#show-ticket).",
type: "action",
version: "0.0.1",
version: "0.0.2",
props: {
app,
ticketId: {
Expand Down
2 changes: 1 addition & 1 deletion components/zendesk/actions/list-tickets/list-tickets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "List Tickets",
description: "Retrieves a list of tickets. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#list-tickets).",
type: "action",
version: "0.0.1",
version: "0.0.2",
props: {
app,
sortBy: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Search Tickets",
description: "Searches for tickets using Zendesk's search API. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/#search-tickets).",
type: "action",
version: "0.0.1",
version: "0.0.2",
props: {
app,
query: {
Expand Down
30 changes: 26 additions & 4 deletions components/zendesk/actions/update-ticket/update-ticket.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Update Ticket",
description: "Updates a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket).",
type: "action",
version: "0.1.3",
version: "0.1.4",
props: {
app,
ticketId: {
Expand All @@ -20,6 +20,12 @@ export default {
"ticketCommentBody",
],
},
ticketCommentBodyIsHTML: {
propDefinition: [
app,
"ticketCommentBodyIsHTML",
],
},
ticketPriority: {
propDefinition: [
app,
Expand All @@ -38,6 +44,12 @@ export default {
"ticketStatus",
],
},
ticketCommentPublic: {
propDefinition: [
app,
"ticketCommentPublic",
],
},
customSubdomain: {
propDefinition: [
app,
Expand All @@ -59,21 +71,31 @@ export default {
const {
ticketId,
ticketCommentBody,
ticketCommentBodyIsHTML,
ticketPriority,
ticketSubject,
ticketStatus,
ticketCommentPublic,
customSubdomain,
} = this;

const ticketComment = ticketCommentBodyIsHTML
? {
html_body: ticketCommentBody,
}
: {
body: ticketCommentBody,
};

ticketComment.public = ticketCommentPublic;

const response = await this.updateTicket({
step,
ticketId,
customSubdomain,
data: {
ticket: {
comment: {
body: ticketCommentBody,
},
comment: ticketComment,
priority: ticketPriority,
subject: ticketSubject,
status: ticketStatus,
Expand Down
2 changes: 1 addition & 1 deletion components/zendesk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/zendesk",
"version": "0.7.0",
"version": "0.7.1",
"description": "Pipedream Zendesk Components",
"main": "zendesk.app.mjs",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/zendesk/sources/new-ticket/new-ticket.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "zendesk-new-ticket",
type: "source",
description: "Emit new event when a ticket is created",
version: "0.2.3",
version: "0.2.4",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "zendesk-ticket-added-to-view",
name: "New Ticket Added to View (Instant)",
description: "Emit new event when a ticket is added to the specified view",
version: "0.0.3",
version: "0.0.4",
type: "source",
dedupe: "unique",
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/zendesk/sources/ticket-closed/ticket-closed.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

export default {
...common,
name: "Ticket Closed (Instant)",

Check warning on line 5 in components/zendesk/sources/ticket-closed/ticket-closed.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
key: "zendesk-ticket-closed",
type: "source",
description: "Emit new event when a ticket has changed to closed status",
version: "0.2.3",
version: "0.2.4",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
2 changes: 1 addition & 1 deletion components/zendesk/sources/ticket-pended/ticket-pended.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

export default {
...common,
name: "Ticket Pending (Instant)",

Check warning on line 5 in components/zendesk/sources/ticket-pended/ticket-pended.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
key: "zendesk-ticket-pended",
type: "source",
description: "Emit new event when a ticket has changed to pending status",
version: "0.2.3",
version: "0.2.4",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
2 changes: 1 addition & 1 deletion components/zendesk/sources/ticket-solved/ticket-solved.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

export default {
...common,
name: "Ticket Solved (Instant)",

Check warning on line 5 in components/zendesk/sources/ticket-solved/ticket-solved.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
key: "zendesk-ticket-solved",
type: "source",
description: "Emit new event when a ticket has changed to solved status",
version: "0.2.3",
version: "0.2.4",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

export default {
...common,
name: "Ticket Updated (Instant)",

Check warning on line 5 in components/zendesk/sources/ticket-updated/ticket-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
key: "zendesk-ticket-updated",
type: "source",
description: "Emit new event when a ticket has been updated",
version: "0.2.3",
version: "0.2.4",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
15 changes: 15 additions & 0 deletions components/zendesk/zendesk.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default {
type: "string",
label: "Trigger Category ID",
description: "The ID of the trigger category. [See the docs here](https://developer.zendesk.com/api-reference/ticketing/business-rules/trigger_categories/#list-trigger-categories)",
optional: true,
async options({ prevContext }) {
const { afterCursor } = prevContext;

Expand Down Expand Up @@ -124,6 +125,13 @@ export default {
label: "Comment body",
description: "The body of the comment.",
},
ticketCommentBodyIsHTML: {
type: "boolean",
label: "Comment body is HTML",
description: "Whether the comment body is HTML. Default is `false`, which expects Markdown",
default: false,
optional: true,
},
ticketPriority: {
type: "string",
label: "Ticket Priority",
Expand All @@ -144,6 +152,13 @@ export default {
optional: true,
options: Object.values(constants.TICKET_STATUS_OPTIONS),
},
ticketCommentPublic: {
type: "boolean",
label: "Comment Public",
description: "Whether the comment is public. Default is `true`",
default: true,
optional: true,
},
sortBy: {
type: "string",
label: "Sort By",
Expand Down
Loading