Hi

Nice module!

Will there be views support? and a reminder function would be really nice.

Morten :)

Comments

jaypan’s picture

Assigned: minus » Unassigned

What sort of views support do you want? I'm happy to look into it.

And if you give me some more information on what you are thinking of for the reminder, I can probably come up with something for that as well.

jaypan’s picture

Status: Active » Postponed (maintainer needs more info)
AlexisWilke’s picture

Status: Postponed (maintainer needs more info) » Active

I will, at some point, make all the fields accessible in the views.

I will add several triggers too and probably some module invoke so Rules can be used to extend this module greatly.

The triggers will be: (1) when you are assigned a new task, (2) when the deadline is near, (3) when the deadline is past, (4) when the issue is marked finished.

Thank you.
Alexis Wilke

AlexisWilke’s picture

Title: views and reminder » views and reminder (views done)
Version: 6.x-1.1-rc4 » 6.x-1.x-dev
Assigned: Unassigned » AlexisWilke

Okay, I just checked in the support for views. It should be available within 12h.

Thank you.
Alexis Wilke

AlexisWilke’s picture

Title: views and reminder (views done) » views and reminder (add Rules support)

Okay, views and reminder are both working. At this point, the reminder is using the system Action scheme which is really bad... But it works for a small website 1 guy something like that.

I'll leave this open for adding Rules support would be best!

Thank you.
Alexis

devenderdagar’s picture

Hi Alexis

I was looking through To Do module and it is really very good module. But I found one issue while going through settings for To Do Settings. there are 3 text boxes for Reminder Event time but it is not working. I set 3 in first text box, then 2 in second and 1 in last. It means Reminder should be mailed to assigned user before 3 days then 2 days and then 1 days. I mean mail should be fired every day if deadline is 3 day away only.

is it something wrong with module or I have to do some settings some where for this to work properly.

thanks for such a nice module

AlexisWilke’s picture

devenderdagar,

You need to have actions that actually send the emails. Did you create such actions? You don't mention...

The module has triggers that get fired on the days you specified.

Thank you.
Alexis

devenderdagar’s picture

Alexis

Thanks for your response. I am trying to send email to the assigned users. But I dont see any token kind of stuff in actions while sending emails. Is there some other way to add %assigned user% kind of thing in actions.

Thanks

AlexisWilke’s picture

The Drupal actions are ... crap. 8-)

This is why this issue says "Add Rules support".

You have to create N number of actions each one sending an email to user X, Y and Z. Then you attach those to the triggers. And there is no way to know whether you should send to X or Y or Z...

For a small website with 2 or 3 people, that's certainly enough. For a bigger system, that's quite limited.

Thank you.
Alexis

devenderdagar’s picture

Alexis

Thanks for your reply. Is there some way to add some Rule Support for Assigned users for reminding About the To Do. I would like to help you if I can do some help in adding some Rule Support for this module.

Cheers

AlexisWilke’s picture

Hi devenderdagar,

I cannot teach you how the Rules module works, but they have many examples in the Rules module itself.

You want to create a new module named to_do_rules.module/info and whatever else you need.

The functions you must program to make the Rules function are defined in to_do_action.module. I made a copy below so you get an idea. The function will be renamed to_do_rules_to_do_started(), etc. and the to_do_action_trigger() needs to be replaced with the Rules equivalent. It should not be that hard... (he! he!)

Thank you.
Alexis

function to_do_action_to_do_started($op, $node) {
  to_do_action_trigger('to_do_started', $node);
}

function to_do_action_to_do_reminder($op, $node) {
  to_do_action_trigger('to_do_reminder', $node);
}

function to_do_action_to_do_deadline_reached($op, $node) {
  to_do_action_trigger('to_do_deadline_reached', $node);
}

function to_do_action_to_do_past_deadline($op, $node) {
  to_do_action_trigger('to_do_past_deadline', $node);
}

function to_do_action_to_do_finished($op, $node) {
  to_do_action_trigger('to_do_finished', $node);
}

function to_do_action_to_do_unpublished($op, $node) {
  to_do_action_trigger('to_do_unpublished', $node);
}

function to_do_action_to_do_deleting($op, $node) {
  to_do_action_trigger('to_do_deleting', $node);
}
AlexisWilke’s picture

Title: views and reminder (add Rules support) » views and reminder (add Rules actions support)

Okay, I added support for all those actions with the Rules extension.

The Rules extension does not include conditions, instead you can use [tokens] which return values that can be tested with the Rules number or string features.

Still missing are possible actions (i.e. change the status from the Rules module.)

AlexisWilke’s picture

Status: Active » Fixed

Alright, this is all coming to place so I'm marking this very issue as fixed. If you find problems with 6.x-1.x-dev or 6.x-1.6, please create new issues spelling out those problems.

Thank you.
Alexis Wilke

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.