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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How can we set the search api to respect the issue filter order?

I am trying to use this API:

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/search-search

I pass in ?jsql=filter=1234 where 1234 is my issue filter that has issues in a particular order using an order by clause.

I get back the issues from that filter but not in the order that the issue filter has specified in it's order by clause.  The order is important to us.

2 answers

Adding the order by worked for me. 

 jql=filter%3D1234%20ORDER%20BY%20key%20ASC  (this one respects the order provided)

But if it's in the filter already shouldn't it come back for this too?

  jql=filter%3D1234  (this one does not use the filter's order)

The problem is what if we don't know the order by to add to the api but the filter does know the order by.

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 04, 2023

I see, unfortunately this is the only workaround I have :( 

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 01, 2023

Hi @Mark Matchynski 

Have you tried encoding "=" in the URL?

  jql=filter%3D1234

I am not sure but adding "order by" to the URL might also help you fix the problem

 jql=filter%3D1234%20ORDER%20BY%20key%20ASC

Suggest an answer

Log in or Sign up to answer