Workflow property to allow reporter to assign in Create transition only

For the project's permission scheme, I can allow the Reporter to assign issues to the assignable list but I want to limit it to the Create transition only.  Using workflow properties on the Create transition, I tried a variety of scenarios for

    jira.permission.assign.user.1 to REPORTER  or CURRENT_USER

but it didn't work.  Suggestions?

1 answer

1 vote

You cannot grant new permissions using workflow properties. You can only restrict from what is already granted.

In your case, you will have to grant Reporter the permission in project permissions and then deny the permission in all workflow steps other than Create. Having said that, it is a step property and not transition property. Never tried it on Create transition.

Workflow properties are poorly documented. I've reviewed but these properties must be experimented with on a trial and error basis. I added Reporter back to the project level permission scheme for "Assign Issue", verified the Reporter could once again assign to anyone, not just himself. Then I tried the following property on a transition of interest: jira.permission.assign.denied=reporter and then tried jira.permission.assign.denied=REPORTER Neither worked. Jobin, your assistance is appreciated. BTW, I'm on Jira 6.4.11 and ScriptRunner 3.0.11

I am afraid what you are trying will not work. You can only specify who "can" do the transition. You can not specify who "can not" do it. For example, on a transition, you can say that only Developers or people in a group can perform an operation (provided they already had the permission via project permissions). There is no way to say Reporter or people in a group cannot do it. Denied is used when the permission is denied as a whole. Again, I am not sure of all permutations/combinations. This is based on my experience. There might be a few tricks I have missed!

I'm confused. Your 1st reply had me granting the Reporter "Assign Issue" permission at the project permissions scheme level and then deny him. Your 2nd response had me adding the reporter. I appreciate the help but which is it?

Sorry if I got you confused. There are 2 things. 1. You cannot grant new permissions. The permissions has to be there via project permissions 2. In the available permissions, you cannot deny anyone. But you can restrict it to selected groups/roles etc. In short, you can grant permissions to a subset of already available permissions. (And that, in a way, denies the permission to the remaining). In your case, you cannot deny reporter alone because there is no group/role that restricts the permission to everyone but reporter. On the other hand, if you wanted to restrict the permission just to the repoter, you could have done that.

I'm peeling this properties onion and it's making me cry. I'm looking at jtricks workflow properties page and documented lines like - type - type of permission granted/denied. The values can be group, user, assignee, reporter, lead, userCF, projectrole or - jira.permission.comment.denied= I'll get over it. So at the project level permissions scheme, I'll add reporter to the "Assign Issues" permission. That I understand. What would be the actual property syntax on the Create transition(action) to activate only the "reporter" permission from the project level scheme?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

388 views 6 0
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