Tabnine Logo
IssueLinkManager.getIssueLink
Code IndexAdd Tabnine to your IDE (free)

How to use
getIssueLink
method
in
com.atlassian.jira.issue.link.IssueLinkManager

Best Java code snippets using com.atlassian.jira.issue.link.IssueLinkManager.getIssueLink (Showing top 5 results out of 315)

origin: com.atlassian.jira/jira-core

@Override
public IssueLink getIssueLink(Long sourceId, Long destinationId, Long issueLinkTypeId)
{
  return issueLinkManager.getIssueLink(sourceId, destinationId, issueLinkTypeId);
}
origin: com.atlassian.jira/jira-api

IssueLink issueLink = issueLinkManager.getIssueLink(issue.getId(), outwardIssue.getId(), issueLinkType.getId());
linkBeans.add(buildLink(issueLinkType, outwardIssue, true, issueLink.getId().toString()));
IssueLink issueLink = issueLinkManager.getIssueLink(inwardIssue.getId(), issue.getId(), issueLinkType.getId());
linkBeans.add(buildLink(issueLinkType, inwardIssue, false, issueLink.getId().toString()));
origin: com.atlassian.jira/jira-core

@Override
public void delete(DeleteIssueLinkValidationResult validationResult)
{
  notNull("validationResult", validationResult);
  if (!validationResult.isValid())
  {
    throw new IllegalStateException("You cannot delete an issue link with an invalid validation result.");
  }
  final IssueLink issueLink = validationResult.getIssueLink();
  final Long sourceId = issueLink.getSourceObject().getId();
  final Long destinationId = issueLink.getDestinationObject().getId();
  final Long issueLinkTypeId = issueLink.getIssueLinkType().getId();
  issueLinkManager.removeIssueLink(issueLinkManager.getIssueLink(sourceId, destinationId, issueLinkTypeId),
                   validationResult.getUser());
}
origin: com.atlassian.jira/jira-core

@Override
public SingleIssueLinkResult getIssueLink(Long issueLinkId, ApplicationUser user)
{
  Assertions.notNull("issueLinkId", issueLinkId);
  IssueLink issueLink = issueLinkManager.getIssueLink(issueLinkId);
  if (issueLink == null)
  {
    SimpleErrorCollection simpleErrorCollection = new SimpleErrorCollection();
    simpleErrorCollection.addErrorMessage(beanFactory.getInstance(user).getText("rest.issue.link.not.found", issueLinkId.toString()));
    return new SingleIssueLinkResult(simpleErrorCollection, null);
  }
  MutableIssue sourceIssue = issueManager.getIssueObject(issueLink.getSourceId());
  ErrorCollection sourceIssueErrors = validateIssuePermission(user, sourceIssue, Permissions.BROWSE);
  MutableIssue destinationIssue = issueManager.getIssueObject(issueLink.getDestinationId());
  ErrorCollection destinationIssueErrors = validateIssuePermission(user, destinationIssue, Permissions.BROWSE);
  if (sourceIssueErrors.hasAnyErrors() || destinationIssueErrors.hasAnyErrors())
  {
    sourceIssueErrors.getErrors().putAll(destinationIssueErrors.getErrors());
    sourceIssueErrors.getErrorMessages().addAll(destinationIssueErrors.getErrorMessages());
    return new SingleIssueLinkResult(sourceIssueErrors, null);
  }
  return new SingleIssueLinkResult(new SimpleErrorCollection(), issueLink);
}
origin: com.atlassian.jira/jira-rest-plugin

issueLinkId = issueLinkManager.getIssueLink(inwardIssue.getId(), outwardIssue.getId(), linkType.getId()).getId();
com.atlassian.jira.issue.linkIssueLinkManagergetIssueLink

Javadoc

Returns the IssueLink with the specified id.

Popular methods of IssueLinkManager

  • createIssueLink
    Constructs a new issuelink from the sourceIssueId to the destinationId and persists it. This operati
  • isLinkingEnabled
    Returns whether Issue Linking is currently enabled in JIRA. Issue Linking can be enabled or disabled
  • getInwardLinks
    Get links to an issue.
  • getLinkCollection
    Constructs a LinkCollection for a given issue.
  • getOutwardLinks
    Get links from an issue.
  • changeIssueLinkType
    Changes the type of an issue link.NOTE: It is not possible to convert a system link type to a non-sy
  • clearCache
    Clears the Issue Link cache used by the Issue Link Manager.
  • getIssueLinks
    Returns a collection of all IssueLinks for a particular issue link type
  • getLinkCollectionOverrideSecurity
    Constructs a LinkCollection for a given issue, ignoring security.
  • moveIssueLink
    Moves an issue link to a different position in the list of issuelink.NOTE: This is currently only us
  • removeIssueLink
    Removes a single issue link We do not check for permission here. It should be done before this metho
  • removeIssueLinksNoChangeItems
    Removes ALL incoming and outgoing issuelinks from the issue supplied without creating ChangeItems fo
  • removeIssueLink,
  • removeIssueLinksNoChangeItems,
  • resetSequences

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JTable (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now