customfields.put(CUSTOMFIELD_KEY + index, value);
}
public ProjectEvent getProjectEvent(Project.EventType eventType) {
LifeCycleManager lifeCycleManager = LifeCycleManager.createInstanceFor(this);
LifeCycleEntry startLifeCycleEntry = lifeCycleManager.lookupLifeCycleEntry(eventType.toString(), EVENT_START);
LifeCycleEntry endLifeCycleEntry = lifeCycleManager.lookupLifeCycleEntry(eventType.toString(), EVENT_END);
Date startDate = null;
if (startLifeCycleEntry != null) {
startDate = startLifeCycleEntry.getLcTimestamp();
}
Date endDate = null;
if (endLifeCycleEntry != null) {
endDate = endLifeCycleEntry.getLcTimestamp();
}
ProjectEvent projectEvent = new ProjectEvent(eventType, startDate , endDate);
log.debug("getProjectEvent projectEvent=" + projectEvent);
return projectEvent;