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

How to sync priority in Jira to a Picklist custom field in Azure DevOps

Syncing data between Jira and Azure DevOps allows organizations to unify data without context-switching or manual requests.

Since neither platform can share data natively, you’d need native or third-party solutions to get the exchange to work. These integration solutions bridge the communication gap and handle data transformation across platforms.

Without wasting much time, let me show you how to sync Jira issue priority with Azure DevOps picklists using Exalate, a bidirectional third-party solution.

 

Priority and custom field sync: Jira to Azure DevOps use case

When you change the priority of a Jira issue, the value appears in a picklist custom field on the corresponding Azure DevOps work item (task).

Why is this necessary?

  • It provides more context about the user or issue for both Jira and Azure DevOps users.
  • You can share Jira issue priority with teams monitoring a task on Azure DevOps.
  • Customer service teams can orchestrate internal workflows by integrating data from both platforms.
  • Developers and QA specialists can use this to sync priority levels on projects. 

 

For this illustration, I want to fetch data from the Jira priority dropdown and make it appear on a designated custom field on Azure DevOps.

Here are the requirements:

  • Fetching the right API name from fields on both sides.
  • Mapping the correct priority from Jira.
  • Establishing sync rules for the incoming and outgoing data.
  • Setting triggers to update the fields automatically.

 

How to sync priority in Jira to custom field in Azure DevOps

Exalate is a bidirectional integration solution that works with Zendesk, Azure DevOps, ServiceNow, Jira, Salesforce, GitHub, etc.

Why Exalate?

  • It supports trigger-based integration and bulk operations.
  • It provides an integration as a service (IaaS) option for MSPs.
  • It supports the synchronization of Jira and Azure DevOps custom fields.
  • You can use its Groovy scripting engine for complex use cases. 

 

How to configure Exalate for custom field sync

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

To set up an advanced Jira Azure DevOps integration, choose Script Mode.

Once done, create an issue in Jira. Add the description and populate the required fields. You can start syncing manually or automatically via triggers. T

o configure the sync, open Exalate in your Jira dashboard, go to the connection you want to edit, and click on the “Edit connection” icon.

You have two options:

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

Under the “Rules” tab on the Azure DevOps side, enter the following code snippet into the “Incoming sync” text area.

image3.png

def priorityMapping =[ 
"Highest" :"Angry",
"High":"Not OK",
"Medium":"OK",
"Low":"Happy",
"Lowest":"Delighted"
]
def remotePriority = replica.priority.name
priorityName = priorityMapping [remotePriority]?: remotePriority
workItem."MindState" = priorityName

The priorityMapping is a hash map that maps the default Jira issue priorities to the picklist options in the Azure DevOps task.

Once done, click “Publish” to save and implement changes.

To set connection triggers, you must use Azure DevOps WIQL (Work Item Query Language) or JQL (Jira Query Language).

Go to the Jira side and click on “Triggers” in the side panel. Click on “Create trigger” to add your automation.

image2.png

Select the entity type, enter the JQL conditions, and choose the connection. Then, check the activate trigger option and click “Add” to complete the trigger configuration.

 project = FIR AND labels = badday 

Once a Jira issue is created in the “FIR” project with the label “badday”, the priority will be reflected on the MindState custom field on Azure DevOps.

image1.png

Congratulations! You have now set rules and triggers to help you sync custom Azure DevOps task fields with Jira issue priority.

Start monitoring things in order to adjust the rules according to the demands of specific projects and issues.

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.

2 comments

Comment

Log in or Sign up to comment
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.
September 10, 2024

Watch the use case in action :point_right::skin-tone-2: https://bit.ly/3AXHH9X

M Amine
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 13, 2024

Great article 👍

TAGS
AUG Leaders

Atlassian Community Events