[JIRA] How to restrict assignee to be valid within certain group?

Hello experts,

How to restrict assignee to be valid within certain group?

Thoughts:

(1) Need a group configuration for assignee. (seems no such config. available)

(2) Block events if assignee is not in the right group via issueCreated, issueUpdated, issueAssigned events. ==> How to block events in jira listeners?

Thanks.

6 answers

1 accepted

This widget could not be displayed.

Hello Rowens,

As I understand from your question, you want the assignee to be restricted within a certain user group. I think you can acheive that by modify you project permission schemes, you can specifiy the group you want it to be assignable by the Assignable User permission. So other users who belongs to other groups won't be able to be assigned. For further information, you may refer to the documentaion:

https://confluence.atlassian.com/display/JIRA/Managing+Project+Permissions

Thanks for your reply.

I found that I want assignee to be restricted only at certain statuses.

So this global permission scheme doesn't work.

Or do you know how to block events?

Thanks.

Hi Rowens,

You are most welcome. I'm glad I could help.

As for your question, I think it is possible. However, I'm not so sure about it.

Thanks.

BTW, is it possible to set multiple groups?

Ex:

Key: jira.permission.assignable.group

Value: QA,reporter

This widget could not be displayed.

I just want to confirm the format of the content which should go in each field.

EDIT:

I have discovered jira.permission.assignable.group=Reviewteam is the same as-

Property Key: jira.permission.assignable.group
Property Value: Reviewteam

This widget could not be displayed.

People have covered most of your question already, but I'd like to point out that your thought 2 is impossible. You can't "block" somethign in a listener because a listener happens *after* the event, so it's too late.

This widget could not be displayed.

Hi,

I also want to restrict the "Assignee" for issues in a particular state (Newly opened issues must first be assigned to one person to review before they are then Assigned to the correct user).

I set

Key= jira.permission.assignable.group

Value: Reviewteam

However the issue is always automatically assigned to the person raising the issue (who is not part of the Reviewteam group).

I tried with

Key= jira.permission.assign.user

Value: Reviewer

But again, the issue is assigned to the person raising the issue and not the user "Reviewer".

Am I doing this correctly? Is this something that needs to be done on the "Step" or could it be done on the "Transition"?

Cheers

This widget could not be displayed.

CTW pretty much gets it dead on. To summarize:

  • Make a group of users in User Management
  • For each workflow state, add a property where jira.permission.assignable.group is set to YourGroupName
  • In the transition to the state, add a validator that requires a field change, set to Assignee

This then creates a scenario where you must change the assignee, and the assignee must be a member of the desired group - otherwise, the state won't change.

Cheers.

Hey Mat Chavez,
Has anyone actually tried this and seen it work?
It seems impossible to have the validator result as positive as you cannot actually change the Assignee during the transition as moving the card on the story board transitions the status only and not the assignee.
Am I missing something vital?

Steps to replicate:

  1. Once all the setup has been configured, go to your story board
  2. Drag the story from the column not controlled to the controlled column
  3. Error is displayed, whether you change the Assignee to a valid user or not.

Help!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

189 views 3 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