Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,250,693
Community Members
 
Community Events
164
Community Groups

Does Scriptrunner support assignee in role('Role Name')?

Hi,

I want to stop listing out all of my developers in queries and just use the provided Roles (from Users and Roles) page.

I see the JQL Tricks has a query for this but I can't find one in scriptrunner/JIRA for this (which is the one that we own).

Does anyone know a way to do this with either stock JQL or Scriptrunner?

Thanks,

David

1 answer

Hi David,

Unfortunately, I don't think we do. See https://productsupport.adaptavist.com/browse/SRJIRA-2247

Regards, 

Josh

I guess I don't understand the point of Roles then. We use them extensively to identify peoples "role" on the team.

So to be able to do

project=X AND role IN "Developers" is really helpful as the issues can be in any status.

role in "Developers" could just be implemented as a shortcut for assignee in (<function to get a list of users in role "Developers">) which would be great. Issues wouldn't have to be reindexed as the ticket suggests. The referenced ticket refers to the challenge of maintaining role history for querying comments and historical data. I get that could be a challenge if you were doing

project=X AND role WAS "Developers" DURING ("2018/09/01","2018/00/15")

But that can be avoided by not supporting the WAS keyword. I could very easily be missing something.

Thoughts?

David

Hi David,

Would it be possible for you to copy and paste your reply above and put it on the ticket that I linked? I think that you might have some valid points, but I think it would be helpful to continue discussion on that ticket so that all members of the dev team can see it.

Much appreciated,

Josh

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you