Code review without a pull request

Munish Sharma March 5, 2019

Hi Community Members

I have a situation, wherein our organization wishes to implement the below scenario:

A developer working on a JIRA task cannot mark it as Dev Complete unless the code has been reviewed on Gerrit. (+2 done on code)

I was searching for ways how the workflow can be made to wait until the code review is complete and prevent the developer from changing JIRA status for In Dev to Dev Complete.

Do we have a way how we can achieve this.

 

Thanks

1 answer

0 votes
Prakhar Srivastav {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2019

@Munish Sharma 

There is a workaround through which you can achieve this.

First make the transition button disappear from jira. You can provide a condition in workflow which is always false (for your specific transition). 

So you have removed manual option for your workflow status transition and now you need to make code to initiate this transition on an event in your code repository

Now you can add workflow triggers to move your status to Dev Complete , you can choose Pull Request Merge or Review closed.

Please take a look at this documentation :

https://confluence.atlassian.com/adminjiracloud/configuring-workflow-triggers-776636696.html

When workflow transitions are automated with triggers, permissions around who can move the issue between states are ignored. Same with conditions and validators. But don't fret: conditions, validators, and permissions will still apply for that transition when it's executed manually.

 

Regards

Prakhar

Suggest an answer

Log in or Sign up to answer