Report number of lines of diff per file

Problem:

For each file in a review, can the number of lines added, deleted, modified be displayed?  The Review dashboard shows the # of files and # of comments per review and if you drill down into a review, the dashboards shows the # of comments against each file.  Can we get the number of lines churned (added, deleted, modified) per file.  Some of our reviews are quite large and if a designer has a couple of minutes free, they would like to "pick" some of the "smaller" files in the review that have a minimal numbers of diffs.

 

1 answer

0 vote

Hi Brent,

I'm afraid there is nothing built in into Crucible to display such information on a review page.  But this kind of information can be easily retrieved using REST API.  For example for review https://fisheye2.atlassian.com/cru/CR-9888#CFR-10297 you can hit https://fisheye2.atlassian.com/rest-service/reviews-v1/CR-9888/details.json or https://fisheye2.atlassian.com/rest-service/reviews-v1/CR-9888/details to get the number of changed lines in each review file (check changedLines element).  Documentation for this endpoint  can be found on https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html page.  Would you consider writing a plugin to get this information displayed on the crucible page?

Alternatively you may consider raising a feature request for Crucible in https://jira.atlassian.com/browse/CRUC project, if many customers express interest in such feature we would consider adding this to the Crucible core.

Hope that helps,

Piotr

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

77 views 2 6
Read article

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