Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can disable time tracking in Crucible

M_S_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2016

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

1 vote
Answer accepted
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 14, 2016

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.

Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 14, 2016

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; }
M_S_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2016

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

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2016

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.

 

M_S_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 11, 2016

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

Like Daniel Fahlén likes this
Scott_Ruskamp October 18, 2017

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?

Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 19, 2017

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
TAGS
AUG Leaders

Atlassian Community Events