@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 |
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) |
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)
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
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)
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)
issueKey
- relationship
- fixBrokenLinks
- 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.public 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.