/rest/api/2/project/search params orderBy cant work

韩东 December 14, 2021
axios({
              method: "GET",
              url: `${baseUrl}/api/project/search`,
              params: {
                maxResults: 50,
                orderBy: "-lastIssueUpdatedTime",
              },
            })
The results obtained are sorted by 'key'
[
{
"expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
"self": "xxx",
"id": "10150",
"key": "AG",
"name": "xxx",
"avatarUrls": {
。。。
},
"projectTypeKey": "software",
"simplified": false,
"style": "classic",
"isPrivate": false,
"properties": {}
},
{
"expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
"self": "xxx",
"id": "10151",
"key": "AL",
"name": "xxx",
"avatarUrls": {
。。。
},
"projectTypeKey": "software",
"simplified": false,
"style": "classic",
"isPrivate": false,
"properties": {}
},
{
"expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
"self": "xxx",
"id": "10093",
"key": "API",
"name": "xxx",
"avatarUrls": {
。。。
},
"projectTypeKey": "software",
"simplified": true,
"style": "next-gen",
"isPrivate": true,
"properties": {},
"entityId": "f9e256dc-a9c2-431f-bca3-fde740bcb947",
"uuid": "f9e256dc-a9c2-431f-bca3-fde740bcb947"
},


0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events