# IssueApi All URIs are relative to *http://{{AppSubUrl | JSEscape | Safe}}/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**issueAddLabel**](IssueApi.md#issueAddLabel) | **POST** repos/{owner}/{repo}/issues/{index}/labels | Add a label to an issue [**issueAddSubscription**](IssueApi.md#issueAddSubscription) | **PUT** repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Subscribe user to issue [**issueAddTime**](IssueApi.md#issueAddTime) | **POST** repos/{owner}/{repo}/issues/{index}/times | Add tracked time to a issue [**issueCheckSubscription**](IssueApi.md#issueCheckSubscription) | **GET** repos/{owner}/{repo}/issues/{index}/subscriptions/check | Check if user is subscribed to an issue [**issueClearLabels**](IssueApi.md#issueClearLabels) | **DELETE** repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue [**issueCreateComment**](IssueApi.md#issueCreateComment) | **POST** repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue [**issueCreateIssue**](IssueApi.md#issueCreateIssue) | **POST** repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored. [**issueCreateIssueAttachment**](IssueApi.md#issueCreateIssueAttachment) | **POST** repos/{owner}/{repo}/issues/{index}/assets | Create an issue attachment [**issueCreateIssueBlocking**](IssueApi.md#issueCreateIssueBlocking) | **POST** repos/{owner}/{repo}/issues/{index}/blocks | Block the issue given in the body by the issue in path [**issueCreateIssueCommentAttachment**](IssueApi.md#issueCreateIssueCommentAttachment) | **POST** repos/{owner}/{repo}/issues/comments/{id}/assets | Create a comment attachment [**issueCreateIssueDependencies**](IssueApi.md#issueCreateIssueDependencies) | **POST** repos/{owner}/{repo}/issues/{index}/dependencies | Make the issue in the url depend on the issue in the form. [**issueCreateLabel**](IssueApi.md#issueCreateLabel) | **POST** repos/{owner}/{repo}/labels | Create a label [**issueCreateMilestone**](IssueApi.md#issueCreateMilestone) | **POST** repos/{owner}/{repo}/milestones | Create a milestone [**issueDelete**](IssueApi.md#issueDelete) | **DELETE** repos/{owner}/{repo}/issues/{index} | Delete an issue [**issueDeleteComment**](IssueApi.md#issueDeleteComment) | **DELETE** repos/{owner}/{repo}/issues/comments/{id} | Delete a comment [**issueDeleteCommentDeprecated**](IssueApi.md#issueDeleteCommentDeprecated) | **DELETE** repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment [**issueDeleteCommentReaction**](IssueApi.md#issueDeleteCommentReaction) | **DELETE** repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue [**issueDeleteIssueAttachment**](IssueApi.md#issueDeleteIssueAttachment) | **DELETE** repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} | Delete an issue attachment [**issueDeleteIssueCommentAttachment**](IssueApi.md#issueDeleteIssueCommentAttachment) | **DELETE** repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} | Delete a comment attachment [**issueDeleteIssueReaction**](IssueApi.md#issueDeleteIssueReaction) | **DELETE** repos/{owner}/{repo}/issues/{index}/reactions | Remove a reaction from an issue [**issueDeleteLabel**](IssueApi.md#issueDeleteLabel) | **DELETE** repos/{owner}/{repo}/labels/{id} | Delete a label [**issueDeleteMilestone**](IssueApi.md#issueDeleteMilestone) | **DELETE** repos/{owner}/{repo}/milestones/{id} | Delete a milestone [**issueDeleteStopWatch**](IssueApi.md#issueDeleteStopWatch) | **DELETE** repos/{owner}/{repo}/issues/{index}/stopwatch/delete | Delete an issue's existing stopwatch. [**issueDeleteSubscription**](IssueApi.md#issueDeleteSubscription) | **DELETE** repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Unsubscribe user from issue [**issueDeleteTime**](IssueApi.md#issueDeleteTime) | **DELETE** repos/{owner}/{repo}/issues/{index}/times/{id} | Delete specific tracked time [**issueEditComment**](IssueApi.md#issueEditComment) | **PATCH** repos/{owner}/{repo}/issues/comments/{id} | Edit a comment [**issueEditCommentDeprecated**](IssueApi.md#issueEditCommentDeprecated) | **PATCH** repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment [**issueEditIssue**](IssueApi.md#issueEditIssue) | **PATCH** repos/{owner}/{repo}/issues/{index} | Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. [**issueEditIssueAttachment**](IssueApi.md#issueEditIssueAttachment) | **PATCH** repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} | Edit an issue attachment [**issueEditIssueCommentAttachment**](IssueApi.md#issueEditIssueCommentAttachment) | **PATCH** repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} | Edit a comment attachment [**issueEditIssueDeadline**](IssueApi.md#issueEditIssueDeadline) | **POST** repos/{owner}/{repo}/issues/{index}/deadline | Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. [**issueEditLabel**](IssueApi.md#issueEditLabel) | **PATCH** repos/{owner}/{repo}/labels/{id} | Update a label [**issueEditMilestone**](IssueApi.md#issueEditMilestone) | **PATCH** repos/{owner}/{repo}/milestones/{id} | Update a milestone [**issueGetComment**](IssueApi.md#issueGetComment) | **GET** repos/{owner}/{repo}/issues/comments/{id} | Get a comment [**issueGetCommentReactions**](IssueApi.md#issueGetCommentReactions) | **GET** repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue [**issueGetComments**](IssueApi.md#issueGetComments) | **GET** repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue [**issueGetCommentsAndTimeline**](IssueApi.md#issueGetCommentsAndTimeline) | **GET** repos/{owner}/{repo}/issues/{index}/timeline | List all comments and events on an issue [**issueGetIssue**](IssueApi.md#issueGetIssue) | **GET** repos/{owner}/{repo}/issues/{index} | Get an issue [**issueGetIssueAttachment**](IssueApi.md#issueGetIssueAttachment) | **GET** repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} | Get an issue attachment [**issueGetIssueCommentAttachment**](IssueApi.md#issueGetIssueCommentAttachment) | **GET** repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} | Get a comment attachment [**issueGetIssueReactions**](IssueApi.md#issueGetIssueReactions) | **GET** repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue [**issueGetLabel**](IssueApi.md#issueGetLabel) | **GET** repos/{owner}/{repo}/labels/{id} | Get a single label [**issueGetLabels**](IssueApi.md#issueGetLabels) | **GET** repos/{owner}/{repo}/issues/{index}/labels | Get an issue's labels [**issueGetMilestone**](IssueApi.md#issueGetMilestone) | **GET** repos/{owner}/{repo}/milestones/{id} | Get a milestone [**issueGetMilestonesList**](IssueApi.md#issueGetMilestonesList) | **GET** repos/{owner}/{repo}/milestones | Get all of a repository's opened milestones [**issueGetRepoComments**](IssueApi.md#issueGetRepoComments) | **GET** repos/{owner}/{repo}/issues/comments | List all comments in a repository [**issueListBlocks**](IssueApi.md#issueListBlocks) | **GET** repos/{owner}/{repo}/issues/{index}/blocks | List issues that are blocked by this issue [**issueListIssueAttachments**](IssueApi.md#issueListIssueAttachments) | **GET** repos/{owner}/{repo}/issues/{index}/assets | List issue's attachments [**issueListIssueCommentAttachments**](IssueApi.md#issueListIssueCommentAttachments) | **GET** repos/{owner}/{repo}/issues/comments/{id}/assets | List comment's attachments [**issueListIssueDependencies**](IssueApi.md#issueListIssueDependencies) | **GET** repos/{owner}/{repo}/issues/{index}/dependencies | List an issue's dependencies, i.e all issues that block this issue. [**issueListIssues**](IssueApi.md#issueListIssues) | **GET** repos/{owner}/{repo}/issues | List a repository's issues [**issueListLabels**](IssueApi.md#issueListLabels) | **GET** repos/{owner}/{repo}/labels | Get all of a repository's labels [**issuePostCommentReaction**](IssueApi.md#issuePostCommentReaction) | **POST** repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue [**issuePostIssueReaction**](IssueApi.md#issuePostIssueReaction) | **POST** repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue [**issueRemoveIssueBlocking**](IssueApi.md#issueRemoveIssueBlocking) | **DELETE** repos/{owner}/{repo}/issues/{index}/blocks | Unblock the issue given in the body by the issue in path [**issueRemoveIssueDependencies**](IssueApi.md#issueRemoveIssueDependencies) | **DELETE** repos/{owner}/{repo}/issues/{index}/dependencies | Remove an issue dependency [**issueRemoveLabel**](IssueApi.md#issueRemoveLabel) | **DELETE** repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue [**issueReplaceLabels**](IssueApi.md#issueReplaceLabels) | **PUT** repos/{owner}/{repo}/issues/{index}/labels | Replace an issue's labels [**issueResetTime**](IssueApi.md#issueResetTime) | **DELETE** repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue [**issueSearchIssues**](IssueApi.md#issueSearchIssues) | **GET** repos/issues/search | Search for issues across the repositories that the user has access to [**issueStartStopWatch**](IssueApi.md#issueStartStopWatch) | **POST** repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue. [**issueStopStopWatch**](IssueApi.md#issueStopStopWatch) | **POST** repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch. [**issueSubscriptions**](IssueApi.md#issueSubscriptions) | **GET** repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue. [**issueTrackedTimes**](IssueApi.md#issueTrackedTimes) | **GET** repos/{owner}/{repo}/issues/{index}/times | List an issue's tracked times # **issueAddLabel** > List<Label> issueAddLabel(owner, repo, index, body) Add a label to an issue ### Example ```java // Import classes: //import org.gitnex.tea4j.v2.ApiClient; //import org.gitnex.tea4j.v2.ApiException; //import org.gitnex.tea4j.v2.Configuration; //import org.gitnex.tea4j.v2.auth.*; //import org.gitnex.tea4j.v2.apis.IssueApi; ApiClient defaultClient = Configuration.getDefaultApiClient(); // Configure API key authorization: AccessToken ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); AccessToken.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //AccessToken.setApiKeyPrefix("Token"); // Configure API key authorization: AuthorizationHeaderToken ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); AuthorizationHeaderToken.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //AuthorizationHeaderToken.setApiKeyPrefix("Token"); // Configure HTTP basic authorization: BasicAuth HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); BasicAuth.setUsername("YOUR USERNAME"); BasicAuth.setPassword("YOUR PASSWORD"); // Configure API key authorization: SudoHeader ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); SudoHeader.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoHeader.setApiKeyPrefix("Token"); // Configure API key authorization: SudoParam ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); // Configure API key authorization: TOTPHeader ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); TOTPHeader.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //TOTPHeader.setApiKeyPrefix("Token"); // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //Token.setApiKeyPrefix("Token"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo Long index = 789L; // Long | index of the issue IssueLabelsOption body = new IssueLabelsOption(); // IssueLabelsOption | try { List