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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL status changed by a group member Edited

Hello Community,

I'm trying to query all of the tickets transitioned today INTO "Technical Review" by members for group "it-security"

This query does not work:

project = "Client Support" and created > startOfDay() AND status changed TO "Technical Review" AND status changed BY membersOf("it-security")

If I remove the last portion:

AND status changed BY membersOf("it-security")

The JQL does resolve with a list of tickets transitioned today into "Technical Review".   

 

I assumed that the membersOf would work since I'm able to query when status changed by a specific user (id has been changed to protect the innocent) like so:

project = "Client Support" and created > startOfDay() AND status changed TO "Technical Review" AND status changed BY "44444:88jea999-999f-7gh0-g7g7-6g5555sed55"

 

edit:  The error received is A value provided by the function 'membersOf' is invalid for the field 'status'.

3 answers

The syntax would be

status changed to "Technical Review" BY membersOf("administrators")

Thanks for your response @Amanda Kirk 

Unfortunately, that did not work.  The same error appeared. I even tried simplifying the query a bit just to get it work, but same result.

 

project = "Client Support" and created > startOfWeek() AND status changed BY membersOf("it-security")

 

jql-membersOf.png

 

The error seems to imply that the query is checking the membersOf input against status itself.    ¯\_(⊙︿⊙)_/¯ 

project = "Client Support" and created > startOfWeek() AND status changed TO "Technical Review" BY membersOf("it-security")

 Can you tell me if the above works?

Thanks for your willingness to help!   Sadly the same error    ಠ_ಠ

0 votes

@Rosa M Fossi  what I see from the Official JQL documentation (https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/#WAS) is that You can only have "Username" predicate after BY. 

Screen Shot 2020-08-28 at 3.50.44 PM.png.

and the supported fields of membersof() function are Assignee, Reporter, Voter, Watcher, custom fields of type User. 

E.g. assignee in membersOf("it-security")

I'm not sure if the below query works for you.

project = "Client Support" and created > startOfWeek() AND status changed TO "Technical Review" AND assignee in membersOf("it-security")

I'm reasonably certain this worked in the past, as I have multiple queries that worked before that I built years ago. Mine are broken now, and found this when searching for help. The only difference of my query to Rosa's was I did not use double quotes around the group, e.g., membersOf(it-security).

 

I see the JQL docs don't mention this, so I don't know if the docs changed, or if this was unintended functionality that worked in the past. Frustrated as I'm certain undocumented functionality would not be high on Atlassian's list to fix. :-(

Like Vignesh Arunachalam likes this

Sorry to hear your JQLs broke Erik!    I tried without the double quotes (just in case!) but it doesn't resolve.  As the official documentation Sramanth linked it's not listed valid.  

My guess is that at some point using the "membersOf" function was edited to only accept userID. 

I just had an issue where I wanted to see the the issues claimed fixed by a certain user group


I would suggest trying this


Your line:

status changed BY membersOf("it-security")



This change Adding a bracket around membersOf() worked for me now: 


status changed BY (membersof("it-security"))

 

I hope this helps you! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

4,565 views 12 8
Join discussion

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