2
1
0



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.

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      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é

        CommentAdd your comment...
      1.  
        1
        0
        -1

        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

          CommentAdd your comment...