Post

2 followers Follow
0
Avatar

Default value in Timesheet entry based on Work Item

We need to add some custom fields to the Time entries to support time classification.  To determine the correct default value, we need data from the related WorkItem, and the user needs to be able to Override the default value with a manually selected value.  This can be done easily in a Custom Action, but there does not appear to be a way to do it in the Add Timesheet native function, and no way to replace the native function with a Custom Action.

It would be acceptable to display the default value as a separate data item and make the "override" (defaulted to blank) as a separate data item.

Any ideas? 

Jason Ray Answered

Please sign in to leave a comment.

2 comments

0
Avatar

We also needed to use some custom fields with the timesheet entry and also found this difficult to do easily.  We looked at using the custom action, but in the end we used a custom panel so that we could display our custom fields in the same way that the work item shows in the standard panel.

It might not be of help, but we found using the custom panel allowed us to get round the issue of only being able to access the custom fields through clicking on a day to open the entry pop up and then loosing all visibility of the custom fields once you have entered that time entry.

Phil Smith 0 votes
Comment actions Permalink
0
Avatar

Putting the custom fields themselves on the Add/Edit and Summary screens is easy :-)  Making them default to certain values on entry is the problem.  We can easily set them in workflow rules AFTER they are created, but that's not the same thing at all.  And having a custom panel won't allow us to trap for when the entries are initially created.

If I could remove the "Add Time" ribbon action and replace it with a custom action that would be kludgy but workable, but i cant do that either.

Jason Ray 0 votes
Comment actions Permalink