protected IssueConstant getConstant(Issue i1) { Resolution resolutionObject = i1.getResolutionObject(); if (resolutionObject == null) return null; else return resolutionObject; } }
@Override public String getHtml(Map displayParams, Issue issue) { if (issue.getResolutionObject() != null) return "<div style=\"padding: 0 18px 0 0; background-image: url( '../images/icons/accept.png' ); background-repeat: no-repeat; background-position: 100% 50%;\">" + ++displaySequence + ".</div>"; else return "" + ++displaySequence + "."; }
public boolean shouldDisplay(ApplicationUser user, Issue issue, JiraHelper jiraHelper) { return issue.getResolutionObject() == null; }
public Resolution getResolutionObject() { return issue.getResolutionObject(); }
public Resolution getResolutionObject() { return issue.getResolutionObject(); }
public String getViewHtml(FieldLayoutItem fieldLayoutItem, Action action, Issue issue, Map displayParameters) { Map<String, Object> velocityParams = getVelocityParams(fieldLayoutItem, action, issue, displayParameters); // Create resolution object Resolution resolution = issue.getResolutionObject(); velocityParams.put("resolution", resolution); return getViewHtml(velocityParams); }
public void addIndex(Document doc, Issue issue) { if (issue.getResolutionObject() != null) { indexKeyword(doc, getDocumentFieldId(), issue.getResolutionObject().getId(), issue); } else { indexKeyword(doc, getDocumentFieldId(), NO_VALUE_INDEX_VALUE, issue); } } }
.append(issue.getKey()) .append("\">"); if (issue.getResolutionObject() != null)
@Override public FieldJsonRepresentation getJsonFromIssue(Issue issue, boolean renderedVersionRequired, FieldLayoutItem fieldLayoutItem) { return new FieldJsonRepresentation(new JsonData(ResolutionJsonBean.shortBean(issue.getResolutionObject(), jiraBaseUrls))); }
url = getBaseUrl() + "/browse/" + issueKey; if (issue.getResolutionObject() != null)
@Override protected ChangeHistoryItem createInitialChangeItem(Issue issue) { final Resolution resolution = issue.getResolutionObject(); final String resolutionName = resolution == null ? null : resolution.getName(); final String resolutionValue = resolution == null ? EMPTY_VALUE : resolution.getId(); return changeItemBuilder(issue).to(resolutionName, resolutionValue).build(); } }
if (issue.getResolutionObject() != null) { job.setStatus("closed"); } else {
this.resolution = getId(issue.getResolutionObject()); this.created = issue.getCreated(); this.updated = issue.getUpdated();