Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you edit the Code Reviewer so that you can add default assignees in a Classic Project?

Zoe Fisher January 22, 2020

I'm working in a classic project and I want to learn how to add default assignees for code reviews so my team does not need to update the Code Review field each time we create a new ticket. 

We have already set up components that are assigned to specific individuals. 

1 answer

1 accepted

0 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2020

Hello Zoe,

Thank you for reaching out.

Per your description, I understand you have a custom issue type called "Code review", which you would like to set a default assignee every time an issue of that type is created. Is that correct?

If you only have that single issue type in your project, you can simply navigate to Project settings > Details and set the default assignee as you need.

Now, if you have multiple issue types and the default assignee should be applied only for "Code review", then you will need to use the post function "Update issue field". These would be the steps:

1 - Configure a separate workflow for your Code Review issues, adding it to the workflow scheme of your project. For more information, check the documentation Working with workflows.

2 - Navigate to your Project > Project Settings > Workflows > Click to Edit the workflow related to the Code review issue type.

3 - In diagram mode, click in the create transition > Post functions:

Screen Shot 2020-01-21 at 15.33.35.png

4 - Add the post function "Update issue field", configuring add the assignee field with the user you want

5 - Publish your workflow draft

Let me know if you have any questions.

Zoe Fisher January 23, 2020

Hi Petter, 

Thank you for your reply. I have worked with the workflows in the past and will try this. Thank you for providing these helpful steps. I am wondering however, from what you outlined for option 2 (multiple issue types) it sounds like this is would only apply if we are trying to assign a sole person (vs. a team) to do Code Review?

I may have worded my original question incorrectly. Let me try again.

I work with a team of 8 developers. We have agreed to have each developer own (act as a primary) on the various applications that we use (E.x. Mandrill / Mailchimp). This means that we have a list of custom components that we have created in JIRA. If we create a ticket we are able to choose from our list of components or add a new component.

What I'm trying to figure out is:  how do I choose a component and have the Code Review field pre-populate with whomever is the primary on that application. In other words, where do I go to define this? 

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 27, 2020

Hello Zoe,

Thank you for the details provided in your last answer.

Now I understand that, when you manually set the component of the issue, you need the application to automatically add the Code Review field (I believe this is a user picker custom field) with the person that is the primary of the application related to that component. Is that correct?

If that's what you are trying to achieve, I believe that you will need an app like Automation for Jira to perform that kind of Condition, like:

if -> component = design

them -> Code review = Petter

Screen Shot 2020-01-27 at 15.51.21.png

Let us know if that add-on provides you with the functionality you are looking for.

Zoe Fisher January 28, 2020

Thank you Petter! I was able to create a automate a condition. This was very helpful. Thank you

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2020

You are welcome, Zoe!

Have a nice day and let us know in case you have any other questions.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events