wapi.tracking#

Use this module to interact with the wizard asset tracking.

wapi.tracking.get_task_assignment(stage)#

Return the current user assignment of the stage

Parameters:

stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

Returns:

The assigned user name

Return type:

str

wapi.tracking.get_task_state(stage)#

Return the current state of the stage

Parameters:

stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

Returns:

The state

Return type:

str

wapi.tracking.get_task_work_time(stage)#

Return the current work time elapsed on the stage

Parameters:

stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

Returns:

The work time in seconds

Return type:

int

wapi.tracking.get_task_estimated_time(stage)#

Return the current estimated time for the stage

Parameters:

stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

Returns:

The estimated time in seconds

Return type:

int

wapi.tracking.assign_task(stage, user)#

Assign the given user to the given stage

Parameters:
  • stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

  • user (str) – The user name as string

Returns:

None

Return type:

None

wapi.tracking.set_task_state(stage, state)#

Assign the given state ( todo, wip, error, done ) to the given stage

Parameters:
  • stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

  • state (str) – The state as string ( todo, wip, error, done )

Returns:

None

Return type:

None

wapi.tracking.estimate_task_time(stage, time)#

Assign the given estimation to the given stage

Parameters:
  • stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

  • time – The time in seconds

Returns:

None

Return type:

None

wapi.tracking.add_task_comment(stage, comment)#

Add a comment ot the given stage.

Parameters:
  • stage (str or int) – The stage as string ( example: “assets/characters/Joe/modeling” ) or int

  • comment – The comment as string

Returns:

None

Return type:

None