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: 

Need to orderBy API project/versions

Adria Alonso
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.
October 29, 2019

Hello All,

I'm trying to user the orderBy parameter on getting projects versions, but Its not working.

I know that Ordering is not available in all resources/endpoints, I just assume its not working in that since you have the paginated versions.

Any Idea or suggestion?

Thank you in advance

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Adria Alonso
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 8, 2019

I've sorted it out quite simply.

Since those api endpoints does not support orderby parameters on the request.

You can use a reverse()/invert()/... methods depending on your development platform and programming language preferences.

So in my case it was pretty easy adding a .reverse() 

Notice this isnt an ORDER BY behaviour, its just working as LIFO or FIFO