Difference between revisions of "Timereg addMinutesSpent"
(Created page with "==== Timereg_addMinutesSpent<br/> ==== Add number of minutes to task or project register '''Syntax''' Timereg_addMinutesSpent(''taskResourceId'', minutesSpent, status...") |
|||
Line 5: | Line 5: | ||
'''Syntax''' | '''Syntax''' | ||
− | Timereg_addMinutesSpent('' | + | Timereg_addMinutesSpent(''ResourceId'', minutesSpent, status[, date[, ''newUserResourceId''[, role]]]) |
'''Arguments''' | '''Arguments''' |
Revision as of 05:05, 14 September 2015
Timereg_addMinutesSpent
Add number of minutes to task or project register
Syntax
Timereg_addMinutesSpent(ResourceId, minutesSpent, status[, date[, newUserResourceId[, role]]])
Arguments
- taskResourceId: is a number expression. It is the task or project resource id
- minutesSpent: is a number of hours to add
- status: is a string type
Met |
Sick - ½ day |
Vacation - ½ day |
Holiday - ½ day |
Funeral - ½ day |
Met -1/2 day |
- date: is an array which is the original date time
- newUserResourceId: is a number expression. It is the new user resource id to add minutes spent.
- role: is a number type
Index |
Type |
0 |
Project Manager |
1 |
Help Author |
2 |
Technical Designer |
3 |
Developer |
4 |
Tester |
Return value
number of hours registered after applying the given minutes
Example
number a = Timereg_addMinutesSpent(738918, 30, "Met");
print(a); \\0.5