All URIs are relative to https://your-domain.atlassian.com
Method | HTTP request | Description |
---|---|---|
createOrUpdateRemoteIssueLink | POST /rest/api/3/issue/{issueIdOrKey}/remotelink | Create or update remote issue link |
deleteRemoteIssueLinkByGlobalId | DELETE /rest/api/3/issue/{issueIdOrKey}/remotelink | Delete remote issue link by global ID |
deleteRemoteIssueLinkById | DELETE /rest/api/3/issue/{issueIdOrKey}/remotelink/{linkId} | Delete remote issue link by ID |
getRemoteIssueLinkById | GET /rest/api/3/issue/{issueIdOrKey}/remotelink/{linkId} | Get remote issue link by ID |
getRemoteIssueLinks | GET /rest/api/3/issue/{issueIdOrKey}/remotelink | Get remote issue links |
updateRemoteIssueLink | PUT /rest/api/3/issue/{issueIdOrKey}/remotelink/{linkId} | Update remote issue link by ID |
RemoteIssueLinkIdentifies createOrUpdateRemoteIssueLink(body, issueIdOrKey)
Create or update remote issue link
Creates or updates a remote issue link for an issue. If a `globalId` is provided and a remote issue link with that global ID is found it is updated. Any fields without values in the request are set to null. Otherwise, the remote issue link is created. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects and Link issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
// 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.IssueRemoteLinksApi;
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");
IssueRemoteLinksApi apiInstance = new IssueRemoteLinksApi();
Map<String, Object> body = new Map(); // Map<String, Object> |
String issueIdOrKey = "issueIdOrKey_example"; // String | The ID or key of the issue.
try {
RemoteIssueLinkIdentifies result = apiInstance.createOrUpdateRemoteIssueLink(body, issueIdOrKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueRemoteLinksApi#createOrUpdateRemoteIssueLink");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | Map<String, Object> | ||
issueIdOrKey | String | The ID or key of the issue. |
- Content-Type: application/json
- Accept: application/json
deleteRemoteIssueLinkByGlobalId(issueIdOrKey, globalId)
Delete remote issue link by global ID
Deletes the remote issue link from the issue using the link's global ID. Where the global ID includes reserved URL characters these must be escaped in the request. For example, pass `system=http://www.mycompany.com/support&id=1` as `system%3Dhttp%3A%2F%2Fwww.mycompany.com%2Fsupport%26id%3D1`. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects and Link issues project permission for the project that the issue is in. * If issue-level security is implemented, issue-level security permission to view the issue.
// 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.IssueRemoteLinksApi;
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");
IssueRemoteLinksApi apiInstance = new IssueRemoteLinksApi();
String issueIdOrKey = "issueIdOrKey_example"; // String | The ID or key of the issue.
String globalId = "globalId_example"; // String | The global ID of a remote issue link.
try {
apiInstance.deleteRemoteIssueLinkByGlobalId(issueIdOrKey, globalId);
} catch (ApiException e) {
System.err.println("Exception when calling IssueRemoteLinksApi#deleteRemoteIssueLinkByGlobalId");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
issueIdOrKey | String | The ID or key of the issue. | |
globalId | String | The global ID of a remote issue link. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
deleteRemoteIssueLinkById(issueIdOrKey, linkId)
Delete remote issue link by ID
Deletes a remote issue link from an issue. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects, Edit issues, and Link issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
// 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.IssueRemoteLinksApi;
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");
IssueRemoteLinksApi apiInstance = new IssueRemoteLinksApi();
String issueIdOrKey = "issueIdOrKey_example"; // String | The ID or key of the issue.
String linkId = "linkId_example"; // String | The ID of a remote issue link.
try {
apiInstance.deleteRemoteIssueLinkById(issueIdOrKey, linkId);
} catch (ApiException e) {
System.err.println("Exception when calling IssueRemoteLinksApi#deleteRemoteIssueLinkById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
issueIdOrKey | String | The ID or key of the issue. | |
linkId | String | The ID of a remote issue link. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
RemoteIssueLink getRemoteIssueLinkById(issueIdOrKey, linkId)
Get remote issue link by ID
Returns a remote issue link for an issue. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
// 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.IssueRemoteLinksApi;
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");
IssueRemoteLinksApi apiInstance = new IssueRemoteLinksApi();
String issueIdOrKey = "issueIdOrKey_example"; // String | The ID or key of the issue.
String linkId = "linkId_example"; // String | The ID of the remote issue link.
try {
RemoteIssueLink result = apiInstance.getRemoteIssueLinkById(issueIdOrKey, linkId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueRemoteLinksApi#getRemoteIssueLinkById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
issueIdOrKey | String | The ID or key of the issue. | |
linkId | String | The ID of the remote issue link. |
- Content-Type: Not defined
- Accept: application/json
RemoteIssueLink getRemoteIssueLinks(issueIdOrKey, globalId)
Get remote issue links
Returns the remote issue links for an issue. When a remote issue link global ID is provided the record with that global ID is returned, otherwise all remote issue links are returned. Where a global ID includes reserved URL characters these must be escaped in the request. For example, pass `system=http://www.mycompany.com/support&id=1` as `system%3Dhttp%3A%2F%2Fwww.mycompany.com%2Fsupport%26id%3D1`. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
// 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.IssueRemoteLinksApi;
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");
IssueRemoteLinksApi apiInstance = new IssueRemoteLinksApi();
String issueIdOrKey = "issueIdOrKey_example"; // String | The ID or key of the issue.
String globalId = "globalId_example"; // String | The global ID of the remote issue link.
try {
RemoteIssueLink result = apiInstance.getRemoteIssueLinks(issueIdOrKey, globalId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueRemoteLinksApi#getRemoteIssueLinks");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
issueIdOrKey | String | The ID or key of the issue. | |
globalId | String | The global ID of the remote issue link. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Object updateRemoteIssueLink(body, issueIdOrKey, linkId)
Update remote issue link by ID
Updates a remote issue link for an issue. Note: Fields without values in the request are set to null. This operation requires issue linking to be active. This operation can be accessed anonymously. Permissions required: * Browse projects and Link issues project permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
// 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.IssueRemoteLinksApi;
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");
IssueRemoteLinksApi apiInstance = new IssueRemoteLinksApi();
Map<String, Object> body = new Map(); // Map<String, Object> |
String issueIdOrKey = "issueIdOrKey_example"; // String | The ID or key of the issue.
String linkId = "linkId_example"; // String | The ID of the remote issue link.
try {
Object result = apiInstance.updateRemoteIssueLink(body, issueIdOrKey, linkId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueRemoteLinksApi#updateRemoteIssueLink");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | Map<String, Object> | ||
issueIdOrKey | String | The ID or key of the issue. | |
linkId | String | The ID of the remote issue link. |
Object
- Content-Type: application/json
- Accept: application/json