Can I Automatically create Crucible reviews every _week_ ?

Basically want to force a peer review via crucible. Person A's checkins for the week assigned to B, and B's checkins assigned to A. Preferably done automaticaly, but if I can do it in a few clicks, that's ok too.

Seems like it should be a basic use case for Crucible, but not so much. At best I've seen where a single svn checkin can be turned into a review, but that's too small for our flow.

2 answers

0 vote

AFAIK there is no plugin to do exactly what you want, but it wouldn't be too hard to create a plugin to do this - the best starting point would be the Automatic Review Creation Plugin:

1. It's hard to make a plugin for Hosted Studio.. 2. Does anyone use this plugin as is? we do maybe 200 commits a week, some small, some big. I can't imagine reviewing everything individually.

Alternatively, you might be able to do it using Crucible's REST API (the examples below is with Mercurial):

* for each user:

* create the review:

* generate a list of changeset IDs for the user for that week: hg log -d "Oct 10 to Oct 14" --template="{node}\n" -u "username" > user-week10.txt

* add the changeset IDs to the review:

Alternatively, you can do:

* for each user:

* generate a patch with the commits of the user from the week: hg log -d "Oct 10 to Oct 14" -p --template="\n" -u "username" > user-week10.patch

* add the patch file to the review:

Suggest an answer

Log in or Join to answer
Community showcase
Bridget Sauer
Published Mar 09, 2018 in Jira Service Desk

E.L. Fridge's take on education, Jira Service Desk, and creative Jira use cases

...word of mouth, so by 2016, we were working with several other entities on campus to implement Jira Service Desk . The Atlassian motto of “for every team” has really come true for us in this case. We...

339 views 0 9
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot