Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom JQL function: membersOfProjectRole

Yves Martin
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 Champions.
February 1, 2018

  Hello

I am looking for a way to test "assignee in membersOfProjectRole(PROJECTKEY)" as standard "membersOf" is restricted to JIRA groups.

I have found a pending request: https://jira.atlassian.com/browse/JRASERVER-21711

And some example code at https://mraddon.blog/2016/02/17/jql-custom-function-userinrole-with-groovy-for-jira/ and https://mraddon.blog/2017/01/03/lastcommentcontains-jql-function-for-jira-7-2-scriptrunner/

May you please provide updated code of this function for JIRA 7.6/7.7 ?

@Adaptavist SuppWould it be possible for this JQL function to be included in plugin itself ?

Thank you in advance for your help

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
PD Sheehan
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 Champions.
June 9, 2023

Are you talking about a "Issue Picker" built-in script field?

If so, use a behaviour script to change the JQL based on the current project.

TAGS
AUG Leaders

Atlassian Community Events