[OGo-Discuss] ogo task reminder
Adam Tauno Williams
discuss@opengroupware.org
Fri, 16 Mar 2007 13:50:50 -0400
--=-CiMgLvlievSdrTNZdEW1
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
> > >> - notification time column in the job table (as compared to the date=
x=20
> > >> table for appointments
> > > Any schema changes are going to need the blessing of the PTBs; makes
> > > upgrading/updating, packaging, etc... more complicated.
> > I know, and I thought about that, but I decided, just for consistency, =
it=20
> > would make sense to copy the logic how things work from appointment, wo=
uld=20
> I agree that this is the ideal solution (at least IMO)
> > be the better idea. As there were no extendedJobAttributes... which I c=
ould=20
> > have used, as I started. At least I was not aware of the patch in bugzi=
lla.
> I just wonder if, for the sake of getting something sooner, if a simpler
> solution wouldn't work.=20
> In my understanding tasks have a due *DATE* and not a start *TIME* like
> an appointment. Would it be sufficient to simply store a "reminder"
> property on the task, and to process the tasks for the day? Early in
> the day an e-mail could be sent to user(s) concerning what tasks they
> have due in DAY + 1 (Mon - Thu) or TODAY + 3 (Fri).
> Or make the property an int, number of days 1, 2, 3, or 4. Then you'd
> only need to scan the tasks due in the next 4 days - even at large sites
> that shouldn't be more than a few hundred.
> In the morning the user could have an e-mail "Your due tasks" or some
> such.
> I do something like this with SQL, but with no OGo/WebUI integration,
> you just get the message for all your tasks. Just making that optional
> would be a huge improvement.
FYI, the query I use is:
WHERE "job_status" NOT IN ( '25_done', '30_archived', '02_rejected' )=20
AND is_control_job IS NULL=20
AND start_date < 'tomorrow'
AND end_date < 'tomorrow'::DATE + INTERVAL '4 days'
--=-CiMgLvlievSdrTNZdEW1
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBF+tj6LRePpNle04MRAgF6AJ4wOKxWAAdtRRO+F6tB+d+w95N/JgCdECvh
V3QK6UnCpSh7gsXglWTGigo=
=fMaj
-----END PGP SIGNATURE-----
--=-CiMgLvlievSdrTNZdEW1--