Restrict workflow state transition "Current User != Reporter"

Hi fellow JIRA lovers,

Hope you can help me on this one:

I’m currently implementing a very simple review process using workflow. User logs an issue, submits for review and someone from the reviewers group (assigned to a fake user to mimic a group) will be able to push the issue to the next workflow step. This is all working fine however, reviewers are also allowed to log issues and I want to force a peer review.

The rule is quite simple: Current user != Reporter -> Disable button or even better raise an error.

My question is; what would be the best way of getting this implemented?

Thanks,
Kevin

5 answers

1 accepted

If you want to disable a button, you need to use a condition.

If you want to throw an error, you need to use a validator.

There is no built in validator to do what you are looking for. You can easily write a validator plugin, or use the script runner plugin.

Many thanks Bhushan.

Was hoping that this could be configured but just overseeing the possible option.

Will have to start reading up on how to build a validator plugin.

Kevin

Give me 10 minutes I might have something for you

Hi Kevin,

Uploaded the plugin for you. It is available at

https://bitbucket.org/bhushan154/not-reporter-workflow-plugin/overview

Documentation available at

https://bitbucket.org/bhushan154/not-reporter-workflow-plugin/wiki/Home

I haven't tested it yet and don't think I will be able to do it today. Try it out and let me know if you have any issues.

https://bitbucket.org/bhushan154/not-reporter-workflow-plugin/issues?status=new&status=open

Thanks so much for this! I was looking for something to do this exact thing and stumbled across this page.

Hi Kevin,

You need to use a workflow condition.

Add a condition which allows only the Reporter of the issue to perform the transition.

1. Go to Administration click on Workflows

2. Choose the workflow you want to edit

3. Click on the Transition you would like to apply the condition to

4. Click on Conditions and select Add

5. Select "Only Reporter Condition"

Documentation available at

https://confluence.atlassian.com/display/JIRA/Configuring+Workflow#ConfiguringWorkflow-conditions

Thanks Bhushan.

Unfortunately, I made a mistake within my title. It should be in “negative”.

  • Current user = Reporter -> Disable button or even better raise an error.

Kind regards,
Kevin

the above mentioned plugin is not at all working , Please help

0 vote

Hey everyone,

For anyone that finds this post today, the plugin posted by Bhushan no longer appears to be updated or compatible with Jira.

I found a free plugin for Jira Server on marketplace that can be used to do this.

You could install the Workflow Enhancer for Jira.  This plugin allows you create a condition type called "Universal Condition".  When you select this and choose Add, you can then configure this condition.

You can then enter a syntax such as:

{Reporter} != [user]

and then set the expression must evaluate to True.   This way if the reporter is also the user that is currently looking at this issue, they cannot make this transition.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,338 views 14 20
Join discussion

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