Can disable time tracking in Crucible

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

2 answers

1 accepted

This widget could not be displayed.

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.

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; }

Thanks for the workaround solution. Not ideal, but acceptable.

This widget could not be displayed.

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.

 

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...

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?

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 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

34 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you