Fullscreen
Loading...
 
[Show/Hide Left Column]
[Show/Hide Right Column]

Time_Sheet

This profile allows recording time spent on projects. It creates two trackers: one to hold the time spent, and the other with the project names. Both trakers are linked, so that project names can be chosen when entering items to the timesheet tracker.

In addition, you can also use the Timesheet feature and Plugin Timesheet.

Profile definition


General
YAML
permissions:
 Anonymous:
  allow: [ list_trackers, view_trackers ]
 Registered:
  description: Will be ignored because group is already created
  allow: [ create_tracker_items, modify_tracker_items ]
preferences:
 enable: [ feature_trackers, feature_time_sheet, wikiplugin_timesheet ]


Project List

YAML
objects:
 -
  type: tracker
  ref: project_list
  data:
   name: Project list
   description: List of projects
   default_status: open
   show: [ creation_date ]
   allow: [ comments, attachments ]
 -
  type: tracker_field
  ref: project_summary
  data:
   name: Summary
   tracker: $project_list
   type: text_field
   flags: [ searchable, public, list, mandatory, link]
   order: 10
 -
  type: tracker_field
  ref: project_description
  data:
   name: Description
   tracker: $project_list
   type: text_area
   flags: [ searchable, public, list]
   order: 30
 -
  type: tracker_field
  ref: project_manager
  data:
   name: Project manager
   tracker: $project_list
   type: user
   flags: [ searchable, public, list ]
   order: 40


Timesheet

YAML
objects:
 -
  type: tracker
  ref: timesheet
  data:
   name: Time sheet
   description: Simple time sheet - do not rename
   default_status: open
   show: [ creation_date ]
   allow: [ comments, attachments ]
 -
  type: tracker_field
  ref: timesheet_summary
  data:
   name: Summary
   tracker: $timesheet
   type: text_field
   options: 0,80
   flags: [ searchable, public, list, mandatory, link]
   order: 10
 -
  type: tracker_field
  ref: timesheet_associated_project
  data:
   name: Associated project
   tracker: $timesheet
   type: item_link
   options: $profileobject:project_list$,$profileobject:project_summary$
   flags: [ searchable, public, list]
   order: 32
 -
  type: tracker_field
  ref: timesheet_description
  data:
   name: Description
   tracker: $timesheet
   type: text_area
   options: 1,60,10
   flags: [ searchable, public, list]
   order: 30
 -
  type: tracker_field
  ref: timesheet_time_spent
  data:
   name: Amount of time spent
   tracker: $timesheet
   type: numeric
   options:
     samerow: 1
     decimals: 2
     dec_point: .
     thousands: ,
   description: "Please indicate total number of hours, in decimal format. Ex.: 2h30 => 2.5 "
   flags: [ public, list ]
   order: 35
 -
  type: tracker_field
  ref: timesheet_work_done_by
  data:
   name: Done by
   tracker: $timesheet
   type: user
   options: 1,1
   flags: [ searchable, public, list ]
   order: 40


Sample data

YAML
objects:
 -
  type: tracker_item
  ref: project_general
  data:
   tracker: $project_list
   status: open
   values:
    - [ $project_summary, "General" ]
    - [ $project_description, "All the stuff which doesn't fit anywhere else" ]
    - [ $project_manager, "" ]
 -
  type: tracker_item
  ref: timesheet_sample_data
  data:
   tracker: $timesheet
   status: open
   values:
    - [ $timesheet_summary, "Setup of Tiki TimeSheet" ]
    - [ $timesheet_description, "Congratulations, you just installed the TimeSheet. You can delete this entry and start adding your own" ]
    - [ $timesheet_time_spent, ".25" ]
    - [ $timesheet_associated_project, $profileobject:project_general$ ]
 -
  type: tracker_item
  ref: timesheet_sample_data2
  data:
   tracker: $timesheet
   status: open
   values:
    - [ $timesheet_summary, "Watch TV" ]
    - [ $timesheet_description, "Taking it easy" ]
    - [ $timesheet_time_spent, "5" ]
    - [ $timesheet_associated_project, $profileobject:project_general$ ]


Add a for & report with the total number of hours


This will include: Profile_Time_Sheet_timesheet_page

YAML
instructions: TimeSheet
preferences:
  enable: [ feature_wiki ]
objects:
  -
    type: wiki_page
    ref:  timesheet_page
    data:
      name: TimeSheet
      description: Who did what? 
      lang: en
      content: wikicontent:Profile_Time_Sheet_timesheet_page



Notes/todo

[+]

Contributors to this page: Xavier de Pedro , Marc Laporte , luciash d' being , Enzimas and System Administrator .
Page last modified on Thursday 23 of January, 2014 16:17:35 CET by Xavier de Pedro.
Category: 12.x
Category: 15.x
Category: 16.x