8000 question: usage of task groups · Issue #538 · frappe/gantt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

question: usage of task groups #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ab-smith opened this issue Apr 24, 2025 · 4 comments
Open

question: usage of task groups #538

ab-smith opened this issue Apr 24, 2025 · 4 comments

Comments

@ab-smith
Copy link

Hello,

First of all, thank you for your great work on this!

My questio 8000 n is regarding the expected behaviour (and target) of tasks groups. Based on #93 , I understood that we need to have something like this:

	let groups = [{ id: 'website', name: 'website' }];
	let tasks = [
		{
			id: '1',
			name: 'Redesign website',
			start: '2025-01-01',
			end: '2025-10-31',
			progress: 80,
			group_id: 'website'
		},
		{
			id: '2',
			name: 'Other stuff on the website',
			start: '2025-12-01',
			end: '2025-12-31',
			progress: 20,
			group_id: 'website'
		},
		{
			id: '3',
			name: 'Clean up the warehouse',
			start: '2025-10-01',
			end: '2025-12-31',
			progress: 50,
			group_id: 'warehouse'
		}
	];

	onMount(async () => {
		gantt = new Gantt('#gantt', tasks, {
			groups: groups,
			view_mode: 'Month',
			date_format: 'YYYY-MM-DD',
			infinite_padding: false,
			readonly_dates: true,
			readonly_progress: true,
			view_mode_select: true,
			holidays: [] //this is for disabling the grayed weekend
		});

		mounted = true;
	});

I was expecting a sticky column on the gantt where tasks of the same group will be on the same row.

Image

wasn't this the intention? is it something you guys are working on or considering?

Thank you!

@ab-smith ab-smith changed the title usage of task groups question: usage of task groups Apr 24, 2025
@stephenjmaher
Copy link

It seems that the idea of groups has come up a lot with this package. There was a PR #448 that was prepared to complete this. This has been updated in #528. When this is merged, you will have tasks within the same group on the same row.

From you screenshot, are you also expecting that there is some group label on the left of the gantt chart? This is something that I believe will be useful. However, it is not available yet.

@ab-smith
Copy link
Author

Hello @stephenjmaher , thanks for the feedback. Indeed, having a label for that same « row » will make it much more convenient for multiple cases. No need for advanced nesting for now, just one level should be enough as a starting point.
I’ll monitor the two enablers in the meanwhile.

@hwyeom
Copy link
hwyeom commented Apr 29, 2025

@stephenjmaher Hello! I also need the left-side labels.
Would it be possible to know when this feature might become available?
Is there any workaround I can use before the feature is officially released?

@yfdoor
Copy link
yfdoor commented May 3, 2025

It's really a good itea, hope we can get it a.s.ap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0