JIRA Hide transition for current user

I'm building a new WF in JIRA and I would like to hide a transition if current user is also the reporter. I would like to do this with jira built-in condition builder. It should looks like this:

The field Reporter will have to be not equal to value 'CURRENT_USER'. Compared as String.

I'm not shore if 'CURRENT_USER' is right variable.

 

I could use "Only Reporter Condition" : Only the reporter of the issue can execute this transition. if ther will be option for negation.

Hope somebody could help me.

 

 

2 answers

1 accepted

0 vote

Hey everyone,

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.

Regards,

Andy

Hi Andy,

 

Thanks, that looks like it would do the trick, and it's free!

 

Much appreciated.

 

Kal

Hi Marjan,

Did you find a solution?

I'm using the following workaround:

  1. Created a scripted field that is populated with the Reporter.
  2. Used the "User Is In Custom field - not in" condition.

You'll need the script runner add-on.

Hi, was there a way to do this without scriptrunner?

 

At the moment I'm trying: 

The field Reporter will have to be not equal to value '%%CURRENT_USER%%'. Compared as String

 

But it doesn't seem to work.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

86 views 0 5
Read article

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