Could you automate code reviews

Eliot Andirson October 12, 2021

My team needs an automated code review process.The code review process involves two rounds, and I would like to automate sends to either our frontend or backend developers.As an example, a ticket would be assigned to Frontend group A when it gets moved from the In Progress column to the First Code Review column. Following the first code review, the ticket gets assigned automatically to group B of frontend developers and moves into the 'second code review' column.

Backend tickets are handled the same way.
Do you think this is possible? Backend developers are assigned tickets time and time again. The current setup is as follows:
The status of this issue has been changed from IN PROGRESS to CODE REVIEW

This issue will be assigned via Round Robin To (a list of users of Group A developers)
The issue data needs to be re-fetched


Block if:
Comparing [[issue.assignee.name]] with [[issue.reporter.name]] in advanced mode
Developers in Group A are the Users Condition Assignees
Round Robin To (an email list of Group A developers) assigns this issue to 'A User Defined List'

1 answer

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2021

Hi Eliot - Welcome to the Atlassian Community!

Let's take these one at a time. And first - you will not be able to assign an issue to a Group - only to an individual. But you can assign the issue to an individual based on a round-round or random or a balanced work load. We will proceed assuming you want to do one of those. 

So you would create an Automation rule based on a trigger for Issue transitioned with the parameters of from In Progress to First Code Review. 

Then you would add a new Action for Assign Issue. Configure like the image below. 

screenshot1.png

Then you would create another rule to do the same thing for the transition to Second Code Review status. 

If you are not familiar with Automation, you can get started with this:

There are two types of automation:

  • Global: In the Free version, you get 100 executions per product, per month
  • Project: In all versions, you get unlimited executions per month

Automation Basics: https://www.atlassian.com/software/jira/guides/expand-jira/automation

You can do this via global rules to apply to all projects also. You'll need to be a Jira Admin/Site Admin, go to Jira Settings > System > Automation Rules (left-hand menu).

For more on using Automation For Jira see these help pages.

Jira Automation Template Library to help get you started quickly:

https://www.atlassian.com/software/jira/automation-template-library#/labels/all/customLabelId/1453

Suggest an answer

Log in or Sign up to answer