The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Filter: show values who's sum of that value in the result is greater than 1?

David
Contributor
November 8, 2019

I have scriptrunner installed, is it possible to have a filter that returns all the values for a field but omits results when the sum of that value is only 1?

Say the field is fruit

The values returned are:

apple

apple

pear

pear

grapes

 

I would look to drop or not show grapes because there is only one result.

 

Anyway to do this?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Ivan Tovbin
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.
November 9, 2019

Hi,

A scripted field seems to be the solution here. If you could explain your use case (what data you have and how exactly you want this to work), I might be able to help you with the code.