CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Request for comments on case start date and open case issues
Pages: [1]

Author Topic: Request for comments on case start date and open case issues  (Read 920 times)

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Request for comments on case start date and open case issues
December 27, 2010, 11:04:55 am
Brief description of problem:
There is a redundancy/mismatch between the open case activity date and case start date which becomes disconnected after the initial case creation. For most organizations, if not all, case start date and the open case activity date are the same date.

For clarity, "date of first contact with client" may or may not be different - it depends on the intake process. In the cases where it is different the solution is easy (create a new activity type or a custom field). In the cases where it is the same, being able to enter a time component on open case would be helpful, without affecting the former.

More technical details:
1) User creates new case. Enters Dec 1 as start date.
2) Case is created fine but Open Case activity gets created with:
(a) Creation date equal to "now" (fine).
(b) Activity Date equal to Dec 1 + current time. (Odd, but not the main problem.)
3) User goes back to edit the open case activity and changes the date, but what they end up changing is the open case activity date, not the case start date. As noted for most organizations there is no difference between these two dates.

The "proper" solution is to not treat case as a separate data object itself but rather as a view on the set of activities, but this is a bit abstract and difficult to implement/configure, hence the current existence of the case data object and storing case start date separately.

So given that, one option is to ensure that the two are always in sync. Database triggers are already required for logging, so maybe that's one solution, but it could be a barrier to installing civicase.

Another option is changes like so:
1) Add the time component to the open case form in initial create mode. (Case start doesn't have a time component at all, so it will get discarded in the database, but the open case activity date will retain it.)
2) Update the change case start date form to add a time component, and on save also update the open case activity's activity date.
3) On subsequent edits of open case where the date has changed, generate a "change case start date" in the background and update the case start date.

So the main visible change for most users would be that editing open case activities updates the start date. If that's a problem, there could be a checkbox option that defaults to the current behavior (although you could argue the new behavior should be the default).

I can do the coding, just wondering if this is going to cause problems for anybody.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Request for comments on case start date and open case issues
January 05, 2011, 02:02:06 pm
Just bumping this to see if anyone has any comments?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Request for comments on case start date and open case issues
January 06, 2011, 05:40:35 pm
Dave - This seems like a safe change - but of course I'm not a real user :-)
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Request for comments on case start date and open case issues

This forum was archived on 2017-11-26.