Time Tracking sync from jira to AzureDevOps

Originally asked by Fayçcal Kebbati on 07 July 2020 (original question)


Hi,

How I can get the time Tracking in AzureDevops? I created a task in my JIRA instance i have added the original time, time spend and Time remaining, i want to send that information to azure Devops instance.

Could you help me with that?

Thank you.


Answer by André Leroy-Beaulieu Castro on 07 July 2020

Hi Fayçal,

Thanks for raising this question!

First of all, you are going to need to include those three fields in the Outgoing sync of the Jira to add them to the replica:

replica.originalEstimate = issue.originalEstimate
replica.spent = issue.spent
replica.estimate = issue.estimate

and then to sync those values into the Original Estimate, Remaining, and Completed fields in Azure you need to add the following logic into your Incoming sync in Azure DevOps:

//Time Tracking
if(replica.originalEstimate) {
    workItem."Microsoft.VSTS.Scheduling.OriginalEstimate" = (replica.originalEstimate as Double)/3600
}
if(replica.estimate) {
    workItem."Microsoft.VSTS.Scheduling.RemainingWork" = (replica.estimate as Double)/3600
}
if(replica.spent) {
    workItem."Microsoft.VSTS.Scheduling.CompletedWork" = (replica.spent as Double)/3600
}

Best regards,

André


Answer by nick watts on 16 October 2020

Hi, I’m also looking to achieve this, but in reverse, so, sync from azure to Jira Server. I keep getting a null error message though, can’t find value. Any suggestions?

Thanks


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.