# Zendesk, Jira, and Workbot for Slack recipe

This use case guides you through connecting Zendesk, Jira, and Workbot for Slack to Workato to create a powerful automation.

# What does this recipe do?

This recipe enables you to execute a message action in Workbot for Slack, which creates a Zendesk ticket and a Jira issue using the input fields from the trigger's command. After creating these tickets, the details are posted in Slack to a channel or direct message of your choice.

flowchart TD subgraph M[Configuration] direction TB subgraph D[Workbot for Slack action message] direction RL direction RL setup --- Trigger classDef default fill:#b3e0e1,stroke:#51c2b9,stroke-width:1px; end subgraph H[Jira Create issue action] Action --- E[setup] classDef default fill:#b3e0e1,stroke:#51c2b9,stroke-width:1px; end subgraph R[Jira Get issue details action] AA[Action] --- EE[setup] classDef default fill:#b3e0e1,stroke:#51c2b9,stroke-width:1px; end subgraph L[Zendesk Create ticket action] AB[Action] --- EF[setup] classDef default fill:#b3e0e1,stroke:#51c2b9,stroke-width:1px; end subgraph S[Post message in Slack as Workbot for Slack action] AC[Action] --- EG[setup] classDef default fill:#b3e0e1,stroke:#51c2b9,stroke-width:1px; end end A([Create recipe]) --> M --> B([Automated workflow]) D --> H H --> R R --> L L --> S classDef default fill:#c7eded,stroke:#51c2b9,stroke-width:2px;

# Create your recipe

Complete the following steps to design a recipe that creates a Zendesk ticket and a Jira issue when you run an action command in Workbot for Slack.

USE CASES ARE INTENDED AS EXAMPLES ONLY

This use case is intended to serve as an example. Recipe modifications such as trigger and action configuration and conditional logic may require adjustments if you plan to include this recipe in your own workflow.

1

Sign in to your Workato account and navigate to the workspace project where you plan to add the recipe.

2

Set up connections for Zendesk, Jira, and Workbot for Slack using the steps in the following sections:

Set up your Zendesk connection.
1

Click Create > Connection.

2

Search for and select Zendesk in the New Connection page.

3

Provide a name for your connection in the Connection name field.

Zendesk connection setupZendesk connection setup

4

Use the Location drop-down menu to select the project where you plan to store the connection.

5

Enter the Subdomain for your Zendesk URL. For example, if your Zendesk URL is https://acme.zendesk.com, your subdomain is acme.

6

Use the Authentication type drop-down menu to select the authentication type you plan to use for your connection.

7

Optional. Provide your Custom OAuth profile.

8

Click Connect.

Set up your Jira connection.
1

Click Create > Connection.

2

Search for and select Jira in the New Connection page.

3

Provide a name for your connection in the Connection name field.

Jira connection setupJira connection setup

4

Use the Location drop-down menu to select the project where you plan to store the connection.

5

Select your Connection type.

6

Use the Auth type drop-down menu to select the authentication method you plan to use. Supported options are Basic, API token, OAuth 2.0, and personal access token.

7

Provide your Host name. For example, if your Jira URL is https://acme.atlassian.net, your host name is acme.atlassian.net.

8

Click Connect.

Set up your Workbot for Slack connection.
1

Click Create > Connection.

2

Search for and select Workbot for Slack in the New Connection page.

3

Provide a name for your connection in the Connection name field.

Workbot for Slack connection setupWorkbot for Slack connection setup

4

Use the Location drop-down menu to select the project where you plan to store the connection.

5

Optional. Select the NLU provider you plan to use, such as DialogFlow or Amazon Lex NLU. You must connect to the NLU provider for it to appear in the drop-down menu.

6

Optional. Click Advanced to configure Slash commands verification tokens, custom help content, your Slack app status (classic or not), and Org-wide App Scope(s).

7

Optional. Provide your Custom OAuth profile.

8

Click Connect, sign in to your Slack workspace when prompted, and click Continue to verify the connection.

3

Click Create > Recipe.

4

Provide a name for your recipe in the Name field and select the project in which you plan to store the recipe from the Location drop-down menu.

5

Ensure that Trigger from an app is selected under Pick a starting point and click Start building.

Set up your recipeSet up your recipe

6
Set up your Workbot for Slack trigger.
1

Search for Workbot for Slack in the Choose an app search box and select the Slack connection app you created in the preceding steps.

Choose Workbot for Slack as your appChoose Workbot for Slack as your app

2

Select New Shortcut trigger.

New shortcut triggerNew Shortcut trigger

3

Use the Shortcut type drop-down menu to select Message.

Setup shortcut triggerSet up your Shortcut trigger

4

Provide a Shortcut name. For example, Create issue & ticket.

5

Click the Add field button under Parameters.

6

Name your input field Summary > add a Label > set Data type to String > set Optional? to No > provide a Hint for your input field > set Dialog control type to Text > and then click Save.

Summary input fieldSummary input field

7

Click the Add field button under Parameters to add a second input field.

8

Name your input field Description > add a Label > set Data type to String > set Optional? to No > provide a Hint for your input field > set Dialog control type to Textarea > and then click Save.

Description input fieldDescription input field

9

Click the Add field button under Parameters to add a third input field.

10

Name your input field Priority > add a Label > set Data type to String > set Optional? to No > provide a Hint for your input field > set Menu options to Static > add a list of comma separated Options > and then click Save.

Priority input fieldPriority input field

11

Click the Add field button under Parameters to add a fourth input field.

12

Name your input field notify-user > add a Label > set Data type to String > set Optional? to No > provide a Hint for your input field > set Menu options to Conversations > and then click Save.

notify_user input fieldnotify_user input field

13

Use the Copy original text into dialog field drop-down menu to select Description.

notify_user input fieldSelect Description

14

Click Save.

7

Click the + Add step button and select Action in app.

Add actionClick Add step > Add action in app

8
Set up your Jira Create issue action.
1

Search for Jira in the Choose an app search box and select the Jira connection you created in the preceding steps.

Choose Jira as your appChoose Jira as your app

2

Select Create issue as your action.

3

Use the Project issue type drop-down menu to select the issue type you plan to create. For example: task, bug fix, or onboarding.

Configure Create issueSelect your issue type

4

Map the Workbot for Slack Summary | Step 1 datapill into the Summary field.

5

Map the Workbot for Slack Description | Step 1 datapill into the Description field.

6

Map the Workbot for Slack Priority | Step 1 datapill into the Priority name field.

7

Click Save.

9

Click the + Add step button and select Action in app.

10
Set up your Jira Get issue action.
1

Search for Jira in the Choose an app search box and select the Jira connection you created in the preceding steps.

Choose Jira as your appChoose Jira as your app

2

Select Get issue as your action.

Get issueSelect Get issue as your action

3

Map the Jira ID | Step 2 datapill into the Issue ID or key field.

Get issue setupMap the Jira ID | Step 2 datapill

4

Click Save.

11

Click the + Add step button and select Action in app.

12
Set up your Zendesk Create ticket action.
1

Search for Zendesk in the Choose an app search box and select the Zendesk connection you created in the preceding steps.

Choose Zendesk as your appChoose Zendesk as your app

2

Select Create ticket as your action.

Create ticketSelect Create ticket as your action

3

Map the Jira Summary | Step 3 datapill into the Subject field.

4

Use the Priority drop-down menu to select Enter custom value and then click Formula.

Set priority to formulaSet the Priority field to Formula

5

Copy and paste the following formula into the Priority field:

=["Higher", "Highest"].include?(_dp('{"pill_type":"output","provider":"jira","line":"9e7af602","path":["fields","priority","name"]}')) ? "urgent" :  "Medium" == _dp('{"pill_type":"output","provider":"jira","line":"9e7af602","path":["fields","priority","name"]}') ?  "normal" : _dp('{"pill_type":"output","provider":"jira","line":"9e7af602","path":["fields","priority","name"]}') == "High" ?  "high" : "low"

Priority formulaPriority formula

6

Use the Status drop-down menu to select Open.

7

Map the Jira Due date | Step 3 datapill into the Due at field.

Map due dateMap the Due date | Step 3 datapill into the Due at field

8

Map the Workbot for Slack Description | Step 1 datapill into the Text comment field.

Map descriptionMap the Description | Step 1 datapill into the Text comment field

9

Click Save.

13

Click the + Add step button and select Action in app.

14
Set up your Workbot for Slack Post message action.
1

Search for Workbot for Slack in the Choose an app search box and select the Workbot for Slack connection you created in the preceding steps.

2

Select Post message as your action.

3

Map the Workbot for Slack Notify user | Step 1 datapill into the Channel name/DM field.

Notify userMap the Workbot for Slack Notify user | Step 1 datapill

4

Click the Add block to message button > use the Type drop-down menu to select Section with text.

Add block messageClick the Add block to message button

5

Map the Zendesk Subject | Step 4 datapill, the Zendesk Ticket ID | Step 4 datapill, and the Workbot for Slack User ID | Step 1 datapill into the Section text field.

Map section textMap the Section text field

6

Click the Add block to message button and use the Type drop-down menu to Section with fields.

Section with fieldsSection with fields

7

Navigate to the Attachment fields section and click the Add field button.

Add fieldClick the Add field button

8

Enter Subject in the Title field and then map the Zendesk Subject | Step 4 datapill into the Value field.

Attachment fieldsAdd a Subject field

9

Click the Add field button > enter Priority in the Title field > and map the Zendesk Priority | Step 4 datapill into the Value field.

10

Click the Add field button > enter Description in the Title field > set the Value field to Formula > and copy and paste the following formula into the Value field:


="\n"+_dp('{"pill_type":"output","provider":"zendesk","line":"create_ticket","path":["description"]}')[0...65]+"..."

Attachment fieldsAdd a Description field

11

Click the Add field button > enter Status in the Title field > and map the Zendesk Status | Step 4 datapill into the Value field.

12

Click the Divider Show button and use the Type drop-down menu to select Divider.

DividerSelect Divider

13

Click Save.

15

Click the + Add step button and select Action in app.

16
Set up your second Workbot for Slack Post message action.
1

Search for Workbot for Slack in the Choose an app search box and select the Workbot for Slack connection you created in the preceding steps.

2

Map the Workbot for Slack Notify user | Step 1 datapill into the Channel name/DM field.

Notify userMap the Workbot for Slack Notify user | Step 1 datapill

3

Click the Add block to message button and use the Type menu to select Section with text.

Add block messageClick the Add block to message button

4

Map the Jira Key | Step 3 datapill and the Workbot for Slack User ID | Step 1 datapill into the Section text field.

Map section textMap the Section with text field

5

Click the Add block to message button and use the Type drop-down menu to Section with fields.

6

Navigate to the Attachment fields section and click the Add field button.

Add fieldClick the Add field button

7

Enter Summary in the Title field and then map the Jira Summary | Step 3 datapill into the Value field.

Attachment fieldsAdd a Summary field

8

Click the Add field button > enter Priority in the Title field > and then map the Jira Name | Step 3 datapill into the Value field.

9

Click the Add field button > enter Description in the Title field > set the Value field to Formula > and copy and paste the following formula into the Value field:

="\n"+ _dp('{"pill_type":"output","provider":"jira","line":"9e7af602","path":["fields","description"]}')[0...65]+"..."

Description fieldAdd a Description field

10

Click the Add field button > enter Status in the Title field > and then map the Jira Name | Step 3 datapill into the Value field.

11

Click Save.

Your Zendesk, Jira, and Workbot for Slack recipe is ready to test and implement.


Last updated: 8/14/2024, 8:31:06 PM