View but not execute workflow transition

I have defined some custom conditions in my workflow, so that only users in a specific group can transition the issue to a specific status.

 

With this condition, users of other groups cannot even see the transition button on their screens. Is there a way to make the button appear, but not actually execute, in all users' screens?

 

For example, when a user not in the specified group presses the button it will pop-up an error message, or similar.

2 answers

1 accepted

Hello, you can use validators instead of conditions. The users will get an error message when they try to execute the transition.

Thank you Alina,

 

I have tried using a validator, by selecting the 'Permission Validator'. However, the list of permissions that show up is the default list of JIRA (e.g. edit issues, view issues).

I cannot add a check of users being in specific groups in that list.

Do you have ScriptRunner? You can use a simple scripted validator for this. Select Script Validators -> Simple Scripted Validator and you'll also get examples in the "Add validator screen".

I'd give you an exact example but Atlassian Answers is very slow and the page is not loading. If you search for "jira validator user in group" you'll probably find it.

 

Looks like it may be what I am looking for, thanks!

 

1 vote

No, there's no way to do that.  The button is hidden from the user because the next thing it does is start the transition and re-checks the user's conditions.  Even if you dug into the code and suppressed the hide, there's nothing to get the pop-up if they click it, the next action is an error screen telling them they've landed on a url they don't have rights to.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 2 hours ago in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

13 views 0 3
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