congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IssueLinkManager.isLinkingEnabled
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.atlassian.jira/jira-core

if (!issueLinkManager.isLinkingEnabled())
origin: com.atlassian.jira/jira-core

private void validateLinkingEnabled(final I18nHelper i18n, final ErrorCollection errors)
{
  if (!issueLinkManager.isLinkingEnabled())
  {
    errors.addErrorMessage(i18n.getText("admin.issuelinking.status", i18n.getText("admin.common.words.disabled")), Reason.FORBIDDEN);
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

public boolean isIssueWithLinks() {
  final MutableIssue issue = getMutableIssue();
  if (issueLinkManager.isLinkingEnabled()) {
    //checking if there are any not-subtask issue links (inward or outward)
    return Iterables.any(issueLinkManager.getOutwardLinks(issue.getId()), IssueLinkCopier.isNotSubtaskIssueLink)
        || Iterables.any(issueLinkManager.getInwardLinks(issue.getId()), IssueLinkCopier.isNotSubtaskIssueLink)
        || !remoteIssueLinkManager.getRemoteIssueLinksForIssue(issue).isEmpty();
  }
  return false;
}
origin: com.atlassian.jira/jira-core

private void validateLinkingEnabled(final ApplicationUser user, final ErrorCollection errors)
{
  final I18nHelper i18n = beanFactory.getInstance(user);
  if (!issueLinkManager.isLinkingEnabled())
  {
    errors.addErrorMessage(i18n.getText("admin.issuelinking.status", i18n.getText("admin.common.words.disabled")), Reason.FORBIDDEN);
  }
}

origin: com.atlassian.jira/jira-core

@Override
public FieldJsonRepresentation getJsonFromIssue(Issue issue, boolean renderedVersionRequired, FieldLayoutItem fieldLayoutItem)
{
  if (!issueLinkManager.isLinkingEnabled())
  {
    return null;
  }
  IssueLinksBeanBuilder builder = issueLinkBeanBuilderFactory.newIssueLinksBeanBuilder(issue);
  return new FieldJsonRepresentation(new JsonData(builder.buildIssueLinks()));
}
origin: com.atlassian.jira/jira-core

if (!issueLinkManager.isLinkingEnabled())
origin: com.atlassian.jira/jira-core

@Nonnull
@Override
public MessageSet validate(final ApplicationUser searcher, @Nonnull final FunctionOperand operand, @Nonnull final TerminalClause terminalClause)
{
  MessageSet messageSet = new MessageSetImpl();
  if (!issueLinkManager.isLinkingEnabled())
  {
    messageSet.addErrorMessage(getI18n().getText("jira.jql.function.issue.linking.disabled", getFunctionName()));
    return messageSet;
  }
  final List<String> args = operand.getArgs();
  final int maxArgSize = DefaultRemoteIssueLinkManager.MAX_GLOBAL_ID_LIST_SIZE_FOR_FIND;
  if (args.size() < 1 || args.size() > maxArgSize)
  {
    messageSet.addErrorMessage(getI18n().getText("jira.jql.function.arg.incorrect.range", getFunctionName(), 1, maxArgSize, args.size())
        + " " + getI18n().getText("jira.jql.function.remote.link.by.global.id.incorrect.usage", getFunctionName()));
    return messageSet;
  }
  return messageSet;
}
origin: com.atlassian.jira/jira-core

private void cloneLinksIfNeeded(Issue clone, Set<Long> originalIssueIdSet) throws CreateException
{
  if (isCloneLinks() && issueLinkManager.isLinkingEnabled())
  {
    Collection<IssueLink> inwardLinks = issueLinkManager.getInwardLinks(originalIssue.getId());
    cloneInwardLinks(clone, originalIssueIdSet, inwardLinks);
    Collection<IssueLink> outwardLinks = issueLinkManager.getOutwardLinks(originalIssue.getId());
    cloneOutwardLinks(clone, originalIssueIdSet, outwardLinks);
    cloneRemoteIssueLinks(clone);
  }
}
origin: com.atlassian.jira/jira-core

public boolean isDisplayCopyLink()
{
  if (issueLinkManager.isLinkingEnabled())
  {
    // See if there are any links to clone
    if (givenIssueHasAnyCopyableLink(getOriginalIssue()))
    {
      return true;
    }
    else
    {
      // See if there are any links to copy on sub-tasks
      if (originalIssueHasSubTask())
      {
        for (Issue subTask : getOriginalIssue().getSubTaskObjects())
        {
          if (givenIssueHasAnyCopyableLink(subTask))
          {
            return true;
          }
        }
      }
    }
  }
  return false;
}
origin: com.atlassian.jira/jira-core

public MessageSet validate(final ApplicationUser searcher, final FunctionOperand operand, final TerminalClause terminalClause)
  if (!issueLinkManager.isLinkingEnabled())
origin: com.atlassian.jira/jira-rest-plugin

private ConfigurationBean createConfigurationBean(boolean timeTrackingEnabled, Option<TimeTrackingConfigurationBean> timeTrackingConfigurationBean)
{
  return ConfigurationBean.builer()
      .votingEnabled(voteService.isVotingEnabled())
      .watchingEnabled(watcherService.isWatchingEnabled())
      .unassignedIssuesAllowed(applicationProperties.getOption(APKeys.JIRA_OPTION_ALLOWUNASSIGNED))
      .subTasksEnabled(subTaskManager.isSubTasksEnabled())
      .attachmentsEnabled(attachmentManager.attachmentsEnabled())
      .issueLinkingEnabled(issueLinkManager.isLinkingEnabled())
      .timeTrackingEnabled(timeTrackingEnabled)
      .timeTrackingConfiguration(timeTrackingConfigurationBean.getOrNull())
      .build();
}
origin: com.atlassian.cpji/cpji-jira-plugin

if (getCopyIssueLinks() && issueLinkManager.isLinkingEnabled()) {
  IssueLinkCopier copier = new IssueLinkCopier(issueLinkManager, remoteIssueLinkManager, proxy, linkType);
  Either<NegativeResponseStatus, SuccessfulResponse> copierResult = copier.copyLocalAndRemoteLinks(issueToCopy, copiedIssue.getIssueKey(), copiedIssue.getIssueId());
com.atlassian.jira.issue.linkIssueLinkManagerisLinkingEnabled

Javadoc

Returns whether Issue Linking is currently enabled in JIRA. Issue Linking can be enabled or disabled in the Admin section of JIRA.

Popular methods of IssueLinkManager

  • createIssueLink
    Constructs a new issuelink from the sourceIssueId to the destinationId and persists it. This operati
  • getIssueLink
    Retrieves an issue link given a source, destination and a link type.
  • 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
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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