OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
import { ResourceChangeset } from 'core-app/shared/components/fields/changeset/resource-changeset';
import { TimeEntryResource } from 'core-app/features/hal/resources/time-entry-resource';
export class TimeEntryChangeset extends ResourceChangeset<TimeEntryResource> {
public setValue(key:string, val:any) {
super.setValue(key, val);
// Update the form for fields that may alter the form itself
if (key === 'workPackage') {
this.updateForm();
}
}
protected buildPayloadFromChanges() {
const payload = super.buildPayloadFromChanges();
// we ignore the project and instead rely completely on the work package.
delete payload._links.project;
return payload;
}
}