User:Jouni/Timetracker: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(code corrected)
(test version with include, does not work)
Line 1: Line 1:
{{variable|moderator=Jouni|stub=Yes}}
{{variable|moderator=Jouni|stub=Yes}}
<rcode variables="
<rcode  
variables = "
name:project|description:What project are you working on?|type:selection|options:'Administration';Administration;'Claih/Bioher';Claih/Bioher;'Organising work';Organising work;'Plantlibra';Plantlibra;'Urgenche';Urgenche|default:'Organising work'
name:project|description:What project are you working on?|type:selection|options:'Administration';Administration;'Claih/Bioher';Claih/Bioher;'Organising work';Organising work;'Plantlibra';Plantlibra;'Urgenche';Urgenche|default:'Organising work'
|name:start|description:When did you start the work?|type:datetime
|name:start|description:When did you start the work?|type:datetime
|name:end|description:When did you stop the work?|type:datetime
|name:end|description:When did you stop the work?|type:datetime
|name:continuous|description:|options:1;I did not stop, I am  continuing the work|type:checkbox|default:1
|name:continuous|description:|options:1;I did not stop, I am  continuing the work|type:checkbox|default:1
">
|name:page|type:hidden|default:'Op_en5387'
library(OpasnetBaseUtils)
"
library(xtable)
include = "page:Timetracker|name:tracker"
Obs <- 1#max(op_baseGetData("opasnet_base", "Op_en5387")[, "obs"])+1
>
if(is.null(continuous)){continuous <- 0}
timetracker(page)
data <- data.frame(obs = rep(Obs, 4), Parameter = c("Project", "Start", "End", "Continuous"), Result = c(project, start, end, continuous))
opbase.upload(dsn = "opasnet_base_write", input = data, ident = "Op_en5387", acttype = 5, who = wiki_username, unit = "time")
cat("Thanks for your input")
</rcode>
</rcode>



Revision as of 06:41, 6 October 2011


What project are you working on?:

When did you start the work?:
..-::

When did you stop the work?:
..-::

:
I did not stop, I am continuing the work

+ Show code

Question

How does Jouni spend his time?

Answer

{{#opasnet_base_link:Op_en5387}}


Rationale

The time tracker should follow the Opasnet pages that are edited during the work. The default is that those pages are linked to the ongoing project. If they are edited afterwards, that time is automatically assigned to that project. This default can be overruled by making a data table that contains a list of pages and the project they relate to.

See also

Keywords

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>

Jouni/Timetracker. Opasnet . [1]. Accessed 25 Nov 2024.