Get hands-on training for JIRA Software, Confluence, and more at Atlassian Summit Europe. Register now ›

code review.pngIn a previous blog we discussed how JIRA can integrate with Crucible to link code reviews to issues. There were several comments on that post asking how to incorporate code reviews into the JIRA workflow.
A comment by Siri Vias Khalsa from Verifi explained how he has tackled code reviews and workflow:

We have Crucible reviews integrated into our Jira workflow. Add a condition to the transition going out of the “Review” stage that wont allow you to progress until you created reviews for all commits on the ticket and have closed all of the reviews.
When the developer commits code to svn they are required to enter a valid JIRA ticket number (JIRA Commit Acceptance plugin). This is processed by FishEye and then JIRA can look up the commits for a ticket (JIRA FishEye plugin). The user clicks on a link in the “Source” tab of the JIRA ticket to create a Crucible review. When the review(s) are completed for all of the commits, the user can complete the step.

What is needed for some of the integration mentioned above?

  • Install JIRA, FishEye, and Crucible
  • Integrate JIRA, FishEye and Crucible using the FishEye Plugin

Not sure how to get these applications integrated? Check out the documentation for detailed instructions on integrating JIRA, FishEye, and Crucible.

Code Reviews and JIRA Workflows

Customize your workflow to include one of the (little known) conditions available with the FishEye Plugin integration with JIRA – which also enables Crucible integration.
Condition: transition in the workflow will not move forward if there are any open Crucible code reviews.
code-reviews-workflow-conditions.png
Condition: transition will not move forward if there are any changesets associated with the issue that have not been reviewed.
code-reviews-workflow-issues-review.png
For those of you that use FishEye:
Condition: transition moves forward only if code has been committed against the issue (or not – depending on configuration).
issue-commits.png
Give it a test run and let us know what you think.

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now