Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Sync Statuses Between Zendesk and Jira

Syed Majid Hassan -Exalate-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2024

To sync statuses between Jira and Zendesk, you need a third-party integration solution.

I’ll show you how to implement this use case with Exalate.

Jira Zendesk Integration Use Case: Issue Status Sync

Changing the status of your Jira issue will also update the status of the corresponding Zendesk ticket. 

Let me show you the requirements and challenges:

Primary Requirements

Every time a user changes the status of the Jira issue, the linked Zendesk ticket also reflects the status change. 

For this to work, you’d need to establish sync rules to control the incoming and outgoing data and map the right status to each system.

You can also set triggers to update the status of all tickets linked to the connection automatically and bi-directionally.

Potential Challenges

  • Mapping the right statuses using the correct field name.
  • Writing the correct sync rules.
  • Setting up the right triggers to control the synchronization.

How Exalate Can Solve the Problem

Exalate is a bidirectional integration solution that works with Zendesk, Azure DevOps, ServiceNow, Jira, Salesforce, etc. With the Exalate app, you can:

  • Create a trigger for syncing existing issues using the Bulk Exalate feature.
  • Configure complex use cases using Exalate’s Groovy scripting engine.

How to Implement Exalate for Data Updates

First, install Exalate on both the Zendesk and Jira sides. Next, follow the instructions in this comprehensive guide to establish a connection between them.

For advanced use cases such as this, you must set up a connection using Exalate’s Script Mode. After that, you can commence with the sync.

 Go to your Jira dashboard and create a new issue.

Then, open the Exalate console in Jira. Go to the connection you want to edit and click on the “Edit connection” icon. 

Then change the sync rules under the “Rules” tab. 

You have two text boxes: 

  • Outgoing sync (on the Jira side) refers to the data to be sent over to the Zendesk side. 
  • Incoming sync (on the Zendesk side) refers to the data to be received from the issue on Jira.

On the Zendesk side, add the following code:

image2.png

def statusMap = [
    "To Do":"pending",
          "New":"open",
          "Done":"solved"
        ]
def remoteStatusName = replica.status.name      issue.setStatus(statusMap[remoteStatusName] ?: remoteStatusName)

Note: The statusMap variable establishes the relationship between statuses. The remoteStatusName maps to the replica’s status. Eg., A “pending” case on Zendesk appears as “To Do” in Jira.

Once done, click “Publish” to save the changes.

On the Jira side, enter the code in the “Incoming sync” text box.

image3.png

def statusMap = [
      "pending":"To Do",
      "open":"In Progress",
      "solved":Done"
      ]
def remoteStatusName = replica.status.name
issue.setStatus(statusMap[remoteStatusName] ?: remoteStatusName)

Note: The statusMap variable establishes the relationship between statuses. The remoteStatusName maps to the replica’s status name. Eg., An “open” ticket on Zendesk appears as “In Progress” in Jira

Once done, click “Publish” to save the changes.

Now go back to the Zendesk ticket and set the status as “Open”.

image4.png

Back on Jira, you will see the status appear as “In Progress” automatically.

image1.png

Congratulations! You have now set rules to help you update the status of Jira issues with Zendesk tickets. 

If you still have questions or want to see how Exalate is tailored to your specific use case, book a demo with one of our experts right away.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events