Skip to content

timeTrack

timeTrack: Starts a time tracker on the current object. The time tracker will continue running even if you open other objects or trees in Insight. A running time tracker is visualized in the top right corner. Clicking on the time tracker icon will automatically navigate the user back to the item the timer was started on. Clicking the timeTrack menu action a second time on the active object will stop the time tracker and the time tracking result can be used in further then actions. If a time tracker for object a is active and at the same time another time tracker is started on object b, the time tracker on object a will be stopped and a new one started for object b.

The resulting object is available under $payload in the following then action. Available durations are milliSeconds, seconds, minutes, hours and days.

When the timeTrackStart contains a then action for create the time tracker will be applied to the newly created object after its creation. The time tracker is started when the create page is loaded and already running when the user fills out the object. Canceling the creation will also stop the time tracker.

The timeTrackStop menu is only displayed when a TimeTracker has been started.

ATTENTION: No time tracker can have a create action in the then part of the timeTrackStop if any timeTrackStart has a create action in the then part. In these cases the timeTrackStop must use a createForm and form with "mode" = "save" in the then actions (example).

ATTENTION: If you plan on using the TimeTracker on InsightMobile, please make sure that the usecase you include it in, supports offline. Several features here do not work fully if switching between online and offline, and the usecase is not downloaded locally on each client.

actionValues
maxTrackTime set the resulting duration object to the configured maxTrackTime, if the tracked time would exceed the configured time
ignoreRunning To ensure that the menu is always displayed, this setting can be made

timeTrackStart

{
    "label": "Time",
    "icon": "icon-play",
    "action": "timeTrackStart",
    "actionValues": [
        {
            "maxTrackTime": 3600000,
            "ignoreRunning": true
        }
    ]
}

timeTrackStop

{
    "label": "Time",
    "icon": "icon-stop-circle",
    "action": "timeTrackStop",
    "actionValues": [
        {
            "ignoreRunning": true
        }
    ],
    "then": {
        "label": "Zeitrückmeldung",
        "action": "create",
        "icon": "icon-clock"
    }
}