Calculate job time in workforce

69
4
06-01-2020 10:08 AM
Highlighted
New Contributor II

Is there a way to calculate the time between a job being assigned and completed in workforce? I cannot seem to find any examples or resources any pointers would be useful. 

Many thanks 

4 Replies
Highlighted
Regular Contributor II

Hi Thomas,

This doc topic has some information on how to do this:

Automate and script Workforce—Workforce for ArcGIS | Documentation 

Craig

Highlighted
New Contributor II

Thanks Craig, I will make my way there. Much appreciated! 

Reply
0 Kudos
Highlighted
New Contributor II

Hi Craig, 

I have gone through this but there is no mention of calculating the total time spent on an assignment. I have tried adding a field to my assignments layer and calculated from there but this does not return the correct figure. 
Have you any other links that may help? 
Many thanks 
Thomas 
Reply
0 Kudos
Highlighted
Regular Contributor II

Thomas,

The doc doesn't have an outlined example of how to calculate the total time spent on an assignment, but the section titled Assignment status date and time fields does document the various date/time fields for each status.

You'd want to subtract the assignedDate from the completedDate.

The rest of the section explains how the date/time fields work.

Let me know if that helps.

Craig

Reply
0 Kudos