Package com.atlassian.jira.issue

Examples of com.atlassian.jira.issue.MutableIssue


  }

  private static void appendIssueKey(StringBuilder b, Long issue) {
    try {
      IssueManager issueManager = ComponentAccessor.getIssueManager();
      MutableIssue io = issueManager.getIssueObject(issue);
      if (io != null) b.append(" key:").append(io.getKey());
    } catch (ThreadDeath e) {
      throw e;
    } catch (Throwable e) {
      // ignore
    }
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

   */
  @NotNull
  protected String issueDebug(@Nullable 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

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.