Can disable time tracking in Crucible
Asked by M_S_:

By default, Crucible seems to do time tracking, i.e. the time spent on the review. How can this be disabled?


Answers:
author: Marek Parfianowicz
body: OK. I found a hack for you. Search for the '#time-spent' occurrences in CSS files in your FishEye/Crucible installation directory. You should find two files:

* content/static/\<some hash\>/2static/style/cru/concat.crucible.\<some hash\>.cache.css
* content/static/\<some hash\>/2static/style/cru/crucible.css

The '#time-spent' looks like this:

```
/* time spent */#time-spent {    background: transparent url(../../images/sprite_dropdown.png) no-repeat scroll 4px -398px;    display: block;    height: 24px;}
```

Change the 'display' property to 'none':

```
display: none;
```

Next gzip these css files (overwriting existing ones), e.g.:

```
gzip crucible.cssgzip concat.crucible.&lt;some hash&gt;.cache.css
```

This should hide the option from the review page.

Please note that it does not disable the feature, it just hides it from the UI. It means that all existing time reports will remain.

Please also note that whenever you will upgrade FishEye/Crucible in future, you will have to apply this modification again.

comments: author: Marek Parfianowicz
body: In a similar way you can hide the "Log work" field from an issue transition dialog when closing a review. Just hide it in crucible-dialog.css file (and concat.\*.css files too):

```
#linked-jira-log-work { display: none; }
```


author: M_S_
body: Thanks for the workaround solution. Not ideal, but acceptable.


author: Marek Parfianowicz
body: You can't disable it.

But let me ask you: **why** do you want to disable this field?

I'm asking, because:

* this field calculates time spent automatically, so there is no requirement to enter the time spent manually (although user can do it if he wants)
* the time spent can be reported in linked JIRA issue, but this is not made automatically, user has to click on the submit button

so this feature is entirely optional.

comments: author: M_S_
body: We had lengthly (and unpleasant) discussions with managers and auditors regarding the time spent on reviews. We did not intend to measure and record the time spent on the review, but it happens to be done automatically and it gets displayed.

Frequently, developers did peer reviews of code changes they had already seen before, so the review itself was pretty quick, even though the code changes were complex. Just looking at the time spent on the review in Crucible gives the wrong impression.

Not tracking or not showing the time spent on a review would simplify matters substantially...


author: Scott_Ruskamp
body: We are in a similar situation as M.S. We are talking about process in our development cycle, and while showing the time spent on a review is not needed, when the time is shown and it is short, it makes it look like the code wasn't seriously reviewed and then that becomes a problem. Many times, the reviewer spent longer than the actual time showed due to switching to other windows. So we want to hide this calculation as it somewhat disqualifies the credit we get for doing reviews.

Can I make a feature request to disable the time tracking?


author: Marek Parfianowicz
body: You can raise a feature request on <https://jira.atlassian.com/projects/CRUC/summary> but honestly speaking, this is a low priority issue.

Did you consider writing a small plugin, which would hide this field using javascript? You can find a developer guide here: [https://developer.atlassian.com/fecrudev](https://developer.atlassian.com/fecrudev?)


author: Scott_Ruskamp
body: I filed <https://jira.atlassian.com/browse/CRUC-8198>.