Search Filter: Order by status dosen't give a proper result

Treethawat Thanawachiramate December 16, 2014

Hello Everyone !,

When I'm doing a search through the search filter to seek for ticket/issue and order by status.

 

Example.

My Query: project = "Test Project" AND status in ("In Progress", Open, "On Hold") ORDER BY status ASC

The Result: Open, In Progress and On Hold

My expect result: In Progress, On Hold and Open

 

Is the search function looks those statuses in key id instead of alphabet? Because when I check on the View Statuses page, I found those key ids as follows:

  • Open has id key = 1
  • In Progress has id key = 3
  • On Hold has id key = 10002

 

Would it be possible to arrange a result of status by using alphabet?

1 answer

0 votes
Udo Brand
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.
December 16, 2014

Use a scripted Field (scriptrunner) with text searcher

issue.getStatusObject().getName();

 then order by that field.

Suggest an answer

Log in or Sign up to answer