Forums

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

Question about JIRA Filters

Kristen Viscardi
Contributor
February 17, 2017

I'm trying to sort CSI tickets based on MRR field value.

project = CSI AND status in ("In Progress", New, Pending, Assigned) AND issueFunction in hasLinks() ORDER By MRR ASC

But the sorting results are not the one I want.
It showed sorting like below format:
0
1
10
100
1000
2
20
200
2000
3
............


How can I sort the number base on the true value as (1, 2, 3, 10, 20,
30....)?

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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 Leaders.
February 17, 2017

What type of field is MRR?  I suspect it's not a number, so the issues are being sorted alphabetically, not numerically.

 

Kristen Viscardi
Contributor
February 17, 2017

MRR is a text field. Should I made it numerical?

Kristen Viscardi
Contributor
February 24, 2017

Should we convert the field?

Nic Brough -Adaptavist-
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 Leaders.
February 24, 2017

Yes, changing it to a numeric will fix the order.  The other option is to prefix the shorter options with 00000

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events