Package com.atlassian.jira.issue

Examples of com.atlassian.jira.issue.MutableIssue


   */
  @NotNull
  public static String issueDebug(@Nullable Long issue) {
    if (issue == null) return "null";
    StringBuilder r = new StringBuilder("(");
    MutableIssue issueObject = null;
    try {
      issueObject = ComponentManager.getInstance().getIssueManager().getIssueObject(issue);
    } catch (Exception e) {
// ignore e
    }
    if (issueObject != null) {
      r.append(issueObject.getKey()).append(' ');
    }
    r.append(issue);
    r.append(')');
    return r.toString();
  }
View Full Code Here


  /** Returns issue key if possible. Use for debug output. */
  @Nullable
  public static String getDebugIssueKey(long issueId) {
    try {
      IssueManager issueManager = ComponentAccessor.getIssueManager();
      MutableIssue io = issueManager == null ? null : issueManager.getIssueObject(issueId);
      return io == null ? null : io.getKey();
    } catch (Exception ignored) {}
    return null;
  }
View Full Code Here

    if (issue != null && issue > 0) {
      b.append(" issue:").append(issue);
      if (!ISSUE_LOOKUP_DISABLED) {
        try {
          IssueManager issueManager = ComponentManager.getComponentInstanceOfType(IssueManager.class);
          MutableIssue io = issueManager.getIssueObject(issue);
          if (io != null) b.append(" key:").append(io.getKey());
        } catch (Exception e) {
          // ignore
        }
      }
    }
View Full Code Here

  private User getCurrentUser() {
    return myAuthenticationContext.getLoggedInUser();
  }

  protected MutableIssue getIssue(long issueId) {
    MutableIssue issueObject = null;
    try {
      issueObject = myIssueManager.getIssueObject(issueId);
    } catch (Exception e) {
      logger.warn("cannot retrieve issue " + issueId + ": " + e);
    }
View Full Code Here

    }
    return issueObject;
  }

  protected MutableIssue getIssue(String key) {
    MutableIssue issueObject = null;
    try {
      issueObject = myIssueManager.getIssueObject(key);
    } catch (Exception e) {
      logger.warn("cannot retrieve issue " + key + ": " + e);
    }
View Full Code Here

  }

  protected String issueDebug(Long issue) {
    if (issue == null) return "null";
    StringBuilder r = new StringBuilder("(");
    MutableIssue issueObject = null;
    try {
      issueObject = myIssueManager.getIssueObject(issue);
    } catch (Exception e) {
// ignore e
    }
    if (issueObject != null) {
      r.append(issueObject.getKey()).append(' ');
    }
    r.append(issue);
    r.append(')');
    return r.toString();
  }
View Full Code Here

  /** Returns issue key if possible. Use for debug output. */
  @Nullable
  public static String getDebugIssueKey(long issueId) {
    try {
      IssueManager issueManager = ComponentAccessor.getIssueManager();
      MutableIssue io = issueManager == null ? null : issueManager.getIssueObject(issueId);
      return io == null ? null : io.getKey();
    } catch (Exception ignored) {}
    return null;
  }
View Full Code Here

  /** Returns issue key if possible. Use for debug output. */
  @Nullable
  public static String getDebugIssueKey(long issueId) {
    try {
      IssueManager issueManager = ComponentAccessor.getIssueManager();
      MutableIssue io = issueManager == null ? null : issueManager.getIssueObject(issueId);
      return io == null ? null : io.getKey();
    } catch (Exception ignored) {}
    return null;
  }
View Full Code Here

   * @param issueId the ID of the issue
   * @return the issue, or null if the issue cannot be found or there is an exception getting it
   */
  @Nullable
  protected MutableIssue getIssue(long issueId) {
    MutableIssue issueObject = null;
    try {
      issueObject = myIssueManager.getIssueObject(issueId);
    } catch (Exception e) {
      logger.warn("cannot retrieve issue " + issueId + ": " + e);
    }
View Full Code Here

   * @param key issue key
   * @return the issue, or null if the issue cannot be found or there is an exception getting it
   */
  @Nullable
  protected MutableIssue getIssue(@NotNull String key) {
    MutableIssue issueObject = null;
    try {
      issueObject = myIssueManager.getIssueObject(key);
    } catch (Exception e) {
      logger.warn("cannot retrieve issue " + key + ": " + e);
    }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.issue.MutableIssue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.