Forums

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

JQL to get the number of people inside the people field

Alexis Zankowitch
Contributor
May 15, 2020

Hello

I have a field called reviewers in my tickets. To create this one I'm using the Jira field people. The goal of this field is for the reviewer to tag them once they are done reviewing:
image.png

I'm trying to create a new automation rule that will notify us when this field has at least 2 people. However, I'm a bit stuck with the JQL... I don't know how to "count" this field. 
The only possibility I have so far is knowing that the reviewer field is empty or not.  

Ideally, I would like to have a JQL like this one:


status = review AND Reviewers.count >= 2 

 I can't find anything about counting a field.... I'm a bit stuck here... Any help would be appreciated :) 

2 answers

1 accepted

0 votes
Answer accepted
Alexis Zankowitch
Contributor
July 1, 2020

I found a way to access those value using a custom field and smartvalues  function sizešŸ‘

If you're interested I could share it with you šŸ˜‰

Now people from my team don't have any excuses to not close the ticket šŸ˜

Lars Boldt Pedersen September 7, 2021

Hi Alexis.

I am searching for a way to count number of request participants and it sounds like I could use what you found.

Care to share :)

Johan Wolfhagen
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!
October 25, 2021

@Lars Boldt Pedersen the smart value {{issue.customfield_1234.size()}} gives you the number of Jira users in the custom field 1234.

Like • # people like this
0 votes
Mohamed Benziane
Community Champion
May 15, 2020

Hi,

Is not possible out of the box. May be a plugin like scritprunner could help you.

Alexis Zankowitch
Contributor
May 28, 2020

Oh too bad... thanks for your answer ;) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events