@Internal public class IssueLinkResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
private com.playsql.utils.applinks.ApplinkHelpers |
applinkHelpers |
private com.atlassian.jira.security.JiraAuthenticationContext |
authContext |
private StorageDAO |
dao |
private IntegrationManager |
integrationManager |
static org.apache.log4j.Logger |
log |
private StorageManager |
storageManager |
authenticationContext
Constructor and Description |
---|
IssueLinkResource(com.atlassian.jira.bc.issue.IssueService issueService,
com.atlassian.jira.security.JiraAuthenticationContext authContext,
StorageDAO dao,
StorageManager storageManager,
com.playsql.utils.applinks.ApplinkHelpers applinkHelpers,
IntegrationManager integrationManager) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
checkRequirementsValid(List<Requirement> requirements,
boolean isRelationshipMandatory) |
javax.ws.rs.core.Response |
createLink(String issueKey,
List<Requirement> requirements)
Create one or several links
|
javax.ws.rs.core.Response |
delete(String issueKey,
List<Requirement> requirements)
Remove the links.
|
javax.ws.rs.core.Response |
listLinks(String issueKey,
String relationship,
boolean fixBrokenLinks,
boolean fetchFromConfluence,
Integer version,
Long timeoutMillis)
List issue links.
|
javax.ws.rs.core.Response |
reset(String issueKey,
String relationship,
List<Requirement> requirements)
Reset all the links, either for a single relationship, either for all links of the issue.
|
private javax.ws.rs.core.Response |
returnLinkSuccessMessage(Map<String,Object> result) |
javax.ws.rs.core.Response |
search(String relationship,
String applink,
String spaceKey,
String key,
Long baseline) |
checkIsNotAnonymousUser, getIssueWithPermission, getIssueWithPermissions
public static final org.apache.log4j.Logger log
private final com.atlassian.jira.security.JiraAuthenticationContext authContext
private final StorageDAO dao
private final StorageManager storageManager
private final com.playsql.utils.applinks.ApplinkHelpers applinkHelpers
private final IntegrationManager integrationManager
public IssueLinkResource(com.atlassian.jira.bc.issue.IssueService issueService, com.atlassian.jira.security.JiraAuthenticationContext authContext, StorageDAO dao, StorageManager storageManager, com.playsql.utils.applinks.ApplinkHelpers applinkHelpers, IntegrationManager integrationManager)
public javax.ws.rs.core.Response search(String relationship, String applink, String spaceKey, String key, Long baseline)
public javax.ws.rs.core.Response listLinks(String issueKey, String relationship, boolean fixBrokenLinks, boolean fetchFromConfluence, Integer version, Long timeoutMillis)
issueKey
- the issuerelationship
- optional, the relationship, as a filterfixBrokenLinks
- boolean, Whether to fix broken links or not.
This argument was introduced in the version 2.6.5 (API V9), to fix broken links and help RY Confluence move links of moved issues to new issues.
If the customer is using RY (Confluence) version <= 2.6.4, he will not be able to move the links of the moved issue to the new one.version
- the api version in which the result is expected (not necessarily the one stored in the config).
If >= 11, the results are in a different format.fetchFromConfluence
- default is false. If true, this will send requests to Confluence servers to get the latest
text of the requirements.timeoutMillis
- the timeout in millisecondspublic javax.ws.rs.core.Response createLink(String issueKey, List<Requirement> requirements)
issueKey
- the issue keyrequirements
- list of Requirement
with properties: applinkId, spaceKey, key, baselineNumber.private javax.ws.rs.core.Response returnLinkSuccessMessage(Map<String,Object> result)
public javax.ws.rs.core.Response reset(String issueKey, String relationship, List<Requirement> requirements)
issueKey
- the issue keyrelationship
- the relationship. If empty, all the links of the issue will be used.requirements
- list of Requirement
with all their propertiesvoid checkRequirementsValid(List<Requirement> requirements, boolean isRelationshipMandatory)
public javax.ws.rs.core.Response delete(String issueKey, List<Requirement> requirements)
issueKey
- the issue keyrequirements
- list of Requirement
with properties: applinkId, spaceKey, key, baselineNumber, relationship.Copyright © 2022 Requirement Yogi. All rights reserved.