Hello. Not sure if you have an answer for this. I just started playing with Azure/Jira sync. I am able to get time sync from Jira to Azure. If you are getting from Azure to Jira, I would love some assistance on what you have scripted.
Here is what I came up with
Outgoing Jira:
// Add the time tracking information to the datafilter
replica.timeSpent = issue.timeSpent
replica.originalEstimate = issue.originalEstimate
replica.remainingEstimate = issue.remainingEstimate
Incoming script to Azure
//Time Tracking
if(replica.originalEstimate) {
workItem.“Microsoft.VSTS.Scheduling.OriginalEstimate” = (replica.originalEstimate as Double)/3600
}
if(replica.remainingEstimate) {
workItem.“Microsoft.VSTS.Scheduling.RemainingWork” = (replica.estimate as Double)/3600
}
if(replica.timeSpent) {
workItem.“Microsoft.VSTS.Scheduling.CompletedWork” = (replica.spent as Double)/3600
}
Seems the documentation here isn’t as direct as we could hope for. I had to piece this together trial and error and I think I got a hint from a community post.
Hope that helps.
Comments:
Francis Martens (Exalate) commented on 10 March 2021
We agree - the documentation can be improved a lot on providing better hints but before creating the wrong expectations - it can only go that far. The community site is a much better way to document approaches of the near infinite number of use cases that exalate can be used for.