public Timestamp getCreated() { return issue.getCreated(); }
public Timestamp getCreatedDate() { return issue.getCreated(); }
public Timestamp getCreated() { return issue.getCreated(); }
@Override public int compare(final Issue o1, final Issue o2) { return o1.getCreated().compareTo(o2.getCreated()); } };
if (issue.getCreated() == null) long issueCreated = issue.getCreated().getTime(); if (dropMillis)
public String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map displayParams, Issue issue) { return columnViewDateTimeHelper.render(this, fieldLayoutItem, displayParams, issue, issue.getCreated()); }
private Map processResultSet(ResultSet resultSet, Issue issue) throws SQLException { boolean first = true; Map timeInStatusesMap = new ListOrderedMap(); while (resultSet.next()) { Timestamp startTime = resultSet.getTimestamp(1); String oldString = resultSet.getString(2); String newString = resultSet.getString(3); // Treat the first status as special since we use the issue create date as the start time // and the old value of the change log as the initial state. if (first) { timeInStatusesMap.put(issue.getCreated(), oldString); first = false; } // Always store the new value and timestamp as a transition entry timeInStatusesMap.put(startTime, newString); } return timeInStatusesMap; }
/** * Used for issue creation items * * @param issue The issue */ public JiraActivityItem(final Issue issue, final String displaySummary, final Pair<ActivityObjectType, ActivityVerb> activity, final Option<String> initialDescription) { this.issue = checkNotNull(issue, "issue"); this.displaySummary = checkNotNull(displaySummary, "initialSummary"); this.activity = checkNotNull(activity, "activity"); this.initialDescription = checkNotNull(initialDescription, "initialDescription"); comment = none(); changeHistory = none(); date = issue.getCreated(); //n.b. Date only accurate to the nearest second }
@Override public String toString() { final Issue issue = event.getIssue(); final String issueString = new ToStringBuilder(issue).append("id", issue.getId()).append("summary", issue.getSummary()).append("key", issue.getKey()).append("created", issue.getCreated()).append("updated", issue.getUpdated()).append("assignee", issue.getAssignee()).append( "reporter", issue.getReporter()).toString(); return new ToStringBuilder(this).append("issue", issueString).append("remoteUser", event.getUser()).append("notificationType", notificationType).append("eventTypeId", event.getEventTypeId().longValue()).append("templateId", templateId.longValue()).toString(); }
public void addIndex(Document doc, Issue issue) { indexDateField(doc, getDocumentFieldId(), issue.getCreated(), issue); }
public SimpleVoteHistory(Issue issue) { voteHistory.add(new VoteHistoryEntryImpl(issue.getId(), issue.getCreated(), 0)); voteHistory.addAll(voteManager.getVoteHistory(issue)); voteHistory.add(new VoteHistoryEntryImpl(issue.getId(), new Timestamp(System.currentTimeMillis()), issue.getVotes())); numberOfDays = Days.daysBetween(new DateMidnight(issue.getCreated()), new DateMidnight()).getDays() + 1; }
final Timestamp created = issue.getCreated(); if (createdDate == null || created == null)
@Override public FieldJsonRepresentation getJsonFromIssue(Issue issue, boolean renderedVersionRequired, FieldLayoutItem fieldLayoutItem) { Timestamp created = issue.getCreated(); FieldJsonRepresentation fieldJsonRepresentation = new FieldJsonRepresentation(new JsonData(Dates.asTimeString(created))); if (renderedVersionRequired && created != null) { fieldJsonRepresentation.setRenderedData(new JsonData(dateTimeFormatterFactory.formatter().forLoggedInUser().format(created))); } return fieldJsonRepresentation; } }
containsDate.apply(issue.getCreated()) && inJiraActivities.apply(pair(issue(), post())))
protected ChangeHistoryItem.Builder changeItemBuilder(Issue issue) { return new ChangeHistoryItem.Builder() .withId(MINUS_1) .inChangeGroup(MINUS_1) .forIssue(issue.getId(), issue.getKey()) .inProject(issue.getProjectId()) .field(getField()) .on(issue.getCreated()) .byUser(issue.getReporterId() == null ? DocumentConstants.ISSUE_NO_AUTHOR : issue.getReporterId()); }
this.created = issue.getCreated(); this.updated = issue.getUpdated();
statusId = (statusObject != null) ? statusObject.getId() : null; resolutionId = issue.getResolutionId(); created = copyTimestampOrNullIfUnset(issue.getCreated()); updated = copyTimestampOrNullIfUnset(issue.getUpdated()); resolutionDate = copyTimestampOrNullIfUnset(issue.getResolutionDate());