All URIs are relative to https://your-domain.atlassian.com
Method | HTTP request | Description |
---|---|---|
getAllLabels | GET /rest/api/3/label | Get all labels |
PageBeanString getAllLabels(startAt, maxResults)
Get all labels
Returns a paginated list of labels.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.LabelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
LabelsApi apiInstance = new LabelsApi();
Long startAt = 0L; // Long | The index of the first item to return in a page of results (page offset).
Integer maxResults = 1000; // Integer | The maximum number of items to return per page.
try {
PageBeanString result = apiInstance.getAllLabels(startAt, maxResults);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LabelsApi#getAllLabels");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
startAt | Long | The index of the first item to return in a page of results (page offset). | [optional] [default to 0] |
maxResults | Integer | The maximum number of items to return per page. | [optional] [default to 1000] |
- Content-Type: Not defined
- Accept: application/json