Confluence has been updated to ver 6.15.9. In case of any troubles, please contact infra team.

Questions

 
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...

    1 answer

    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...