How to filter the issues assignees based on project roles?

Prashanth
Contributor
November 24, 2023

Hi,

Need a JQL to filter issues to find list of issues where assignees belongs to a specific project role

4 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Jean-Emmanuel BANQUEY
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2023

Hi @Prashanth 

I am almost sure it's not possible.

But as a workaround, you can create specific Atlassian groups on the Admin side (if you are an admin) for your project and the different project roles, add all existing users to these groups and query with the following JQL syntax : 
assignee in membersOf("groupname-for-your-project-role")

https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#membersOf--

Maybe, you can filter better with this function too : 

https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#projectsWhereUserHasPermission--

Hope it helps

0 votes
Aswad Deshpande
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2023

In Jira Query Language (JQL), you can use the issueFunction to filter issues based on the project role of the assignees. Below is an example JQL query that you can use to find a list of issues where the assignees belong to a specific project role:


issueFunction in membersOf("Project Role Name")


0 votes
mruttan November 24, 2023

Hey There,

 

You could accomplish this by creating a "Project role" custom field with the designations you need,  and use that in your filters.

0 votes
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2023

Hi @Prashanth 

This isn't available in native JQL at this point - there is a feature request you can vote for though, check out JRACLOUD-21711 

You can search by Group if that's a potential alternative? EG.

assignee in membersOf("Administrators")

Ste

TAGS
AUG Leaders

Atlassian Community Events