Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Zendesk meshlet supports the following configuration directives listed below . in additional to the general configurations supported by all ServiceBond meshlets For questions, contact Perspectium Support.


(info) NOTE: Default values refer to the configuration's value if the configuration is not specified in the meshlet configuration file.

jirasessionAuthtrue

The following example enables the use of session IDs for your connection: 

jira server: true sessionAuth: true
DirectiveDefault ValueRequiredDescription

apiTokenAuthsessionAuth

falsetrue

No

Indicates whether you want to authenticate your Jira Zendesk connection with session IDs an API token instead of basic authentication. (info) NOTE: This directive only works with Jira server, thus, you will need to set server to true. (See the next directive).

Code Block
languageyml
perspectium:
	zendesk: 
		apiTokenAuth: true


urlBase
Yes

The base portion of the Zendesk API URL. Since Zendesk includes the resources being interacted with as part of the URL (i.e. tickets.json, users.json, etc.), we separate the URL so we can easily add the different resources below.

Code Block
languageyml
perspectium:
	zendesk: 
		urlBase: https://subdomain.zendesk.com/api/v2/


urlSuffix
Yes

The ending (suffix) for the Zendesk API URL. Usually this is .json for API URLs such as https://subdomain.zendesk.com/api/v2/tickets.json

Code Block
languageyml
perspectium:
	
zendesk: 
		
urlSuffix: 
.json


urlResources
Yes

The resources being interacted with through the API. Each resource should be listed out with a and contain the following properties:

PropertyDescription
nameName of the resource i.e. ticket
urlURL of the resource i.e. tickets.json
parameters

(Optional) Any URL parameters for this resource such as ?filename=%s

In the case of attachments, %s is recognized as the filename. 


Code Block
languageyml
perspectium:
	zendesk:    
        urlResources:
              -  name: ticket
                 url: tickets
              -  name: attachment
                 url: uploads
                 parameters: ?filename=%s


defaultCreateDescription

New ticket from integration

No

Since Zendesk requires a description to be the first comment added, a default description to use if no description is specified when the meshlet receives a message from the other ITSM app like ServiceNow.

This way the ticket is created successfully since it uses the default description.

Code Block
languageyml
perspectium:
	
zendesk:    
        defaultCreateDescription: New ticket from integration


defaultAttachmentComment

Attachment added to ticket

No

Zendesk requires attachments be added as part of a comment to the ticket. By default, the attachment is added with a comment Attachment added to ticket but you can use your own comment for when attachments are added into Zendesk by setting this configuration.

Code Block
languageyml
perspectium:
	
zendesk:    
        defaultAttachmentComment: Attachment added to ticket


defaultCorrelateResponse
No

For when you configure ServiceNow to send back a .correlate message to Zendesk, this message can appear as a comment on the Zendesk ticket so those looking at the ticket in Zendesk will know the ticket was created in ServiceNow.

Code Block
languageyml
perspectium:
	zendesk:    
        defaultCorrelateResponse: Ticket created successfully in ServiceNow


correlationFieldId
Yes

The Zendesk Field ID of the Correlation ID custom field in Zendesk that holds the unique identifier in the other ITSM app being integrated with Zendesk i.e. the sys_id in ServiceNow. This field should be created as detailed here.

Code Block
languageyml
perspectium:
	zendesk:    
         correlationFieldId: 7655609750043


correlationDisplayFieldId
No

The Zendesk Field ID of the Correlation Display custom field in Zendesk that holds the customer-facing identifier in the other ITSM app being integrated with Zendesk i.e. the number in ServiceNow. This field should be created as detailed here.

Code Block
languageyml
perspectium:
	zendesk:    
         correlationFieldId: 7655609750043


startTime
Yes

The start time when the meshlet first runs to query for ticket changes from. That is, it looks for any tickets that have been changed (updated or inserted) since this time on first start. After the first run using this start time, the meshlet will only query for changes since the last time it ran.

This value should be entered in epoch time format in UTC/GMT time. See https://www.epochconverter.com/ if needed to translate into this format.

If this value is blank, it will query for all ticket changes when the meshlet first runs. 

This will query for changes to tickets the first time the meshlet runs:

Code Block
languageyml
perspectium:
	zendesk:    
         startTime: 

This will query for all changes to tickets since 2022-08-09 1:38:42 AM (2022-08-08 6:38:42 PDT) the first time the meshlet runs:

Code Block
languageyml
perspectium:
	zendesk:    
         startTime: 1660009122


userId
Yes

The Zendesk ID for the user entered in perspectium.auth.username. This field will be used to check for any updates in Zendesk made by this user ID so they can be skipped to avoid looping updates back and forth between Zendesk and other ITSM app being integrated.

Code Block
languageyml
perspectium:
	zendesk:    
          userId: 7603423341591


historicalCommentstrueNo

For when a ticket in Zendesk triggers being integrated and whether or not we should get all the comments previously entered prior to the ticket triggering the integration.

If true, all comments will be sent.

If false, comments entered prior to the integration being triggered will not be sent.

Code Block
languageyml
perspectium:
	zendesk:    
          historicalComments: true


ticketPageSize1000No

The number of tickets to query at a time. This value is to control performance so as to not slow down the meshlet and/or your Zendesk environment so as to notquery for too many records at one time. If there are more tickets than the value specified here, it will grab it the next time when it queries for the next "page" (batch).

1000 is the maximum value allowed

servertrue

Enable the use of the Jira server for your Jira connection. 

(info) NOTE: This directive needs to be enabled in order to use the sessionAuth configuration

.

Code Block
languageyml
perspectium:
	zendesk:    
          ticketPageSize: 100


defaultErrorMessagePerspectium ErrorNo

The error message to display when creating a new ticket in Zendesk due to an error with Perspectium to trigger a notification. See notifications in Zendesk for more information.

Code Block
languageyml
perspectium:
	zendesk:    
          defaultErrorMessage: Perspectium Error


ticketSleepTimer60000No

The time for the meshlet to wait ("sleep") in between querying for new changes in Zendesk. This value is in milliseconds i.e. 60000 = 60 seconds.

Code Block
languageyml
perspectium:
	zendesk:    
          ticketSleepTimer: 60000jira: 
		server: true