1
0
-1

Hello,

I’m trying to sync the fields in this guide between Azure Devops and Jira, but once work item is synced. The values in Jira get deleted.

https://docs.idalko.com/exalate/display/ED/How+to+synchronize+Time+tracking+on+Jira

The scripts:

AES_ONSITE.issue.originalEstimate = NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.Effort"
AES_ONSITE.issue.timeSpent = NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.CompletedWork"

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Harold Oconitrillo 


      Do you have any update for us on this issue?


      Cheers,

      Kellie


      1. Ariel Aguilar

        Hi Kellie,

        Please try the following:

        if (executionInstanceName == "AES_ONSITE") {
            if(AES_ONSITE.issue.originalEstimate) {
            NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.Effort" = (AES_ONSITE.issue.originalEstimate as Double)/3600
            }
            if(AES_ONSITE.issue.timeSpent) {
            NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.CompletedWork" = (AES_ONSITE.issue.timeSpent as Double)/3600
            }
        }
        if (executionInstanceName == "NEW_PORTAL") {
            if(NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.Effort") {
             AES_ONSITE.issue.originalEstimate = (NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.Effort" as Double)*3600
            }
            if(NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.CompletedWork") {
             AES_ONSITE.issue.timeSpent = (NEW_PORTAL.issue."Microsoft.VSTS.Scheduling.CompletedWork" as Double)*3600
            }
        }
      CommentAdd your comment...