Is there any way to delete time spent when it was copied from another work item?
When you copy a work item, you can select to copy "Time Spent" to the new Work Item. Is there any way to remove this option or to block it for admins only (we really don't want our users to do this, but I don't see any way to force it).
3 answers
In the Process Configuration of the project area, you can configure your work items so that the Time Spent attribute is always synchronized to th time sheet entries. No time sheet entries, no time spent.
Comments
Hi Mark,
This option is already checked with us. It is specific to when you copy work items and you select to copy "Time Spent" that this disconnect occurs. There are no time sheet entries on the new work item, but there is Time Spent...
The behavior you are describing sounds like a bug or something, but I could be misremembering how it works. In our environment, we didn't like the out-of-the-box "synchronize" behavior (it was buggy). So we wrote our own follow-up action which we called "Synchronize Time Spent". That might be why I can no longer remember how the out-of-the-box synchronization works. I can provide you with the code if you are interested in using it yourself, but deploying custom pre-conditions and follow-up actions is a little bit more advanced than what many users typically are willing to do so I didn't volunteer that solution out-of-the-gate.
I apologize, Nate!
It occurs to me that you may have decided in your process to allow users to directly modify the Time Spent attribute without requiring that they enter timesheet entries. In this scenario, one option would be to make the attribute read-only when the work item is in the Created state. You can do this by configuring the out-of-the-box operation behavior aptly named "Read-Only Attributes for Type and State".