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
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
June 12, 2022

Hi @Anudeep Gudipelli

In your description, you mentioned:

A task should move from status "C" to Status "D" only when all the sub-task should be in "Closed" status, except one sub-task should be in status "F". 

Could you please provide a little more information, i.e. is it expected that all the sub-task be in, for example, DONE status before the Parent issue is transitioned to DONE. If this is what you are looking for, then you can use ScriptRunner's Built-in Post-Function feature, i.e. Transition Parent when all sub-tasks have transitioned.

And why is the exclusion of one sub-task in a different status, i.e. status F? Could you please provide an example for status F?

Thank you and Kind regards,

Ram

 

TAGS
AUG Leaders

Atlassian Community Events