Skip to content
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

Task not getting created Unless at least one task is there in the project #16

Closed
isvfgs opened this issue Feb 14, 2023 · 13 comments
Closed

Comments

@isvfgs
Copy link

isvfgs commented Feb 14, 2023

First of all good work. This plugin indeed a good required addition to the kanboard.
I would like to inform an issue noticed

When I send email to create the task, it is not getting created t unless there is at least one task already created mannually through the interface.

Steps to create.

  1. Create a new project
  2. Setup all the necessary auto actions.
  3. Note down the project id and send mail to create the task

->Problem : Task is not created. ( mail is not getting the read status )

  1. Create a task in that project through the interface
  2. The task send through mail get created after the first task
@alfredbuehler
Copy link
Collaborator

Thank you for your issue.
This seems to be a Kanboard feature. If a project doesn't have any tasks, the registered action isn't invoked for that project.

@creecros
Copy link
Owner

@alfredbuehler is correct, the daily cronjob event is linked to tasks only, so there must be a task to trigger.

I actually never even thought about that. I do wonder, if I can create my own event linked to the project model...and use that to trigger the cron. I have no idea. if I can't figure that out, I'll at least add a mention of this in the readme.

@creecros
Copy link
Owner

Ok, so, can it be done? Yes. But, I would need to override at least the projectmodel to do it....and I'm not really cool with that, i don't want any overrides, especially the project model. More maintenance down the road.
I think the best approach would be to add Project Related events to kanboard itself. So as for this plugin, in KBs current state, I'm going to say, no.

I tried to find any project related events built in, and the only ones were Project File Events, so, that's kind of pointless.

@alfredbuehler
Copy link
Collaborator

Although it's a minor limitation, my recommendation is: forget it. I wouldn't change anything. The actions are task bound, if there is none…
But it should be mentioned in docs/README.

@creecros
Copy link
Owner

Yes, %100 agree. I'll update the Readme, want to run a few tests first. Make sure I understand the criteria exactly.

@creecros
Copy link
Owner

it's good that i tested, noticed an issue with the subject parsing.

But the exact criteria is there must be 1 open task in the project.

creecros added a commit that referenced this issue Feb 14, 2023
@isvfgs
Copy link
Author

isvfgs commented Feb 23, 2023

@creecros I recommend not to put the email polling through the general cron job instead to define a seperate cron job.

Let me explain a problem I encounterd .

The general cron job also used to sent out reminders for tasks that are due , so we could set only daily schdule for it.

But for taks generation through email , should be somthing to be executed at least hourly.

So putting both jobs in same cron will flood up the email inbox if you have enabled the email notifications.

@alfredbuehler
Copy link
Collaborator

Yes, this might be an issue. Maybe we should find a reasonable solution for this.

@creecros
Copy link
Owner

how are the reminders sent? is it another action, or are we talking about built in notifications

@isvfgs
Copy link
Author

isvfgs commented Feb 23, 2023

We talking about built in notifications .. ( when we subscribe to notifications from profile section )

@creecros
Copy link
Owner

got it, let me think on this.

@isvfgs
Copy link
Author

isvfgs commented Feb 23, 2023

It is possible to have a separate cron job cli path for this plugin ? That will resove this problem

@creecros
Copy link
Owner

probably, maybe...I have no idea. this possible issue had crossed my mind. just need to think about it.

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

3 participants