This resource represents available labels. Use it to get available labels for the global label field.
Returns a paginated list of labels.
read:jira-work
read:label:jira
Connect app scope required: READ
integer
integer
Returned if the request is successful.
A page of items.
1
2
3
4
5
6
7
8
9
10
11
12
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
const response = await api.asUser().requestJira(route`/rest/api/3/label`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
10
{
"isLast": false,
"maxResults": 2,
"startAt": 0,
"total": 100,
"values": [
"performance",
"security"
]
}
Rate this page: