Can Crucible automatically add reviewers based on affected file paths?

We desperately need a tool to help us get relevant people onto the right code reviews.

Every reviewer has familiarity with some subset of the repository, but the people submitting reviews don't know who they are. This ought to be really simple - when a diff gets added to a review, we just need to check the file paths against some pattern which is associated with the people who should be watching that content.

I don't personally know much about Crucible, so I can't tell whether this is possible. Is there a plugin API? Some hook that can run when a review changes? Some REST API that I can query to hack a cron-based solution?

4 answers

1 accepted

This widget could not be displayed.

Looks like the answer is no.

This widget could not be displayed.

I know this doesn't help but in v2.8 of Crucible it used to have a "suggested reviewers" section. This was removed by Atlassian when they went to v2.9 because they said nobody used it and it was causing performance issues. It was quite frustrating as our organisation did use it.

Source: https://confluence.atlassian.com/display/CRUCIBLE/Crucible+2.9+release+notes

"With Crucible 2.9 we have removed the Suggested Reviews step during review creation. Not only does this accelerate the process, but it also ensures that performance of the whole Crucible instance is not impacted by a single process. The chart below shows the performance improvement we have seen from this modification."

I am not aware if there is a plugin that adds this back in.

This widget could not be displayed.

I'd upvote your question, but that feature got removed from a.a.c too :(

This widget could not be displayed.
Lukasz Pater Atlassian Team May 15, 2013

Hi Christopher.

Actually the 'suggest reviewers' feature should provide the functionality that you're after. It looks at committers that modified the files you're trying to review the most, and suggests adding them to the review.

If you need more control/automatically add certain people you could look at the plugin or REST apis.

For the plugin api your plugin could hook ReviewCreated/ReviewUpdated events and add certain reviewers to the review. Please see https://developer.atlassian.com/display/FECRUDEV/Event+Listener+Module+Type for more information on event listener modules, and https://developer.atlassian.com/display/FECRUDEV/FishEye+and+Crucible+Java+API+Reference for Crucible's Java API reference.

For REST api you could inspect the files being reviewed using /rest-service/reviews-v1/{id}/reviewitems and add reviewers using POST /rest-service/reviews-v1/{id}/reviewers. See https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html for more information on Crucible's REST API.

The feature Aaron mentioned was 'suggested reviews' which allowed you to add the review to an existing one, and is unrelated to assigning reviewers.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

169 views 2 0
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