Jira REST API - 从资源中获取所有用户数据
Jira REST API - Fetch all users data from a resource
我正在尝试获取 Jira 中所有用户列表的资源,
但是 Jira API 只发送 50 个用户的列表。
我想获取所有用户的列表。
我该怎么做?
端点:
https://myurl.atlassian.net/rest/api/3/users/search
响应(仅50个用户,并非所有用户)
[
{
"self": "https://myurl.atlassian.net/rest/api/3/user?accountId=*********************",
"accountId": "*********************",
"accountType": "customer",
"displayName": "Former user",
"active": false
},
{
"self": "https://myurl.atlassian.net/rest/api/3/user?accountId=************************",
"accountId": "************************",
"accountType": "atlassian",
"emailAddress": "****************",
"displayName": "*************",
"active": true,
"locale": "en_US"
},
{
...
...
...
},
]
您可以在查询中添加参数:
startAt=0&maxResults=1000
我正在尝试获取 Jira 中所有用户列表的资源, 但是 Jira API 只发送 50 个用户的列表。 我想获取所有用户的列表。 我该怎么做?
端点: https://myurl.atlassian.net/rest/api/3/users/search
响应(仅50个用户,并非所有用户)
[
{
"self": "https://myurl.atlassian.net/rest/api/3/user?accountId=*********************",
"accountId": "*********************",
"accountType": "customer",
"displayName": "Former user",
"active": false
},
{
"self": "https://myurl.atlassian.net/rest/api/3/user?accountId=************************",
"accountId": "************************",
"accountType": "atlassian",
"emailAddress": "****************",
"displayName": "*************",
"active": true,
"locale": "en_US"
},
{
...
...
...
},
]
您可以在查询中添加参数:
startAt=0&maxResults=1000