Sync Due Date from Azure DevOps to JIRA cloud

Originally asked by Mark Anderson on 18 February 2022 (original question)


Hi All

Anyone know how to configure due date sync bi-directional between Azure Devops and JIRA cloud


Answer by Stefan Hillmann on 04 March 2022

Hi Mark,

just figured it out for ourselves…

On Azure DevOps:

  • Outgoing Sync:
replica.dueDate = workItem."Microsoft.VSTS.Scheduling.DueDate"

  • Incoming Sync:
import java.text.SimpleDateFormat 

def sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss")
if (replica.dueDate){
    workItem."Microsoft.VSTS.Scheduling.DueDate" = sdf.format(replica.dueDate)
}

On JIRA Cloud:

  • Outgoing Sync:
replica.dueDate = issue.due
  • Incoming Sync:
import java.text.SimpleDateFormat

def sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
if(replica.dueDate){
    issue.due = sdf.parse(replica.dueDate)
}

That configuration is working for us.

Kind Regards

Stefan


Answer by Francis Martens (Exalate) on 20 February 2022

The following document shows how to do it on JIra environments
How to synchronize Due Date field?

It is similar on ADO to JC