Currently, sending GET request to "https://arcanys.atlassian.net/rest/api/latest/project". The projects retrieved are not sorted and I want it sorted in alphabetical order. Of course, it can be done in application logic but that would not be simple. Maybe there is a simple way using JIRA REST API?
I'm considering "https://arcanys.atlassian.net/rest/api/latest/search" as I can specify an ORDER BY clause. Problem is I don't know how to retrieve the list of projects using this endpoint.
Question: Is there a rest api way to retrieve JIRA projects and sort them alphabetically?
No, the issue search (where you have a sort option) is for issues, not projects.
See https://docs.atlassian.com/jira/REST/server/#api/2/project-getAllProjects for getting a list of projects, but you'll have to sort it yourself.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs