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) »
  • Setting defaults for activities created as part of case
Pages: [1]

Author Topic: Setting defaults for activities created as part of case  (Read 599 times)

amberau

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.5
Setting defaults for activities created as part of case
November 16, 2014, 09:08:18 pm
Is it possible to set activity field defaults for activities created in the sequence or timeline of a particular case type?

Could we set the default status for each activity type in a case, or assign a role or the client to fill the "with" or "assigned" fields for activities? Default activity subjects with tokens? This would reduce a lot of the manual work in managing a case and improve automation via scheduled reminders. I just haven't been able to find out if it's already possible or if this is functionality I would need to write myself.

E.g. I would like to have an activity "Send claim forms to client" automated as part of a case by using a scheduled reminder. So it would be great if I could add that activity to the case sequence, then set it to be created with the status "Completed" (I can only do that in the timeline now), and the client in the "With" field so I can use activity targets in the scheduled reminder "to" field.

And what if I want to automatically update the case status based on the completion of a particular activity?

Sorry if I'm missing the obvious, and thanks for any help you can offer :)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Setting defaults for activities created as part of case
November 17, 2014, 11:14:18 pm
As far as I know you can set defaults with the timeline. If you do not want to use that you have to develop your own extension to create the defaults. But perhaps there are newer possibilities in the latest version as I know CiviCase has been updated. What version are you using?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

amberau

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.5
Re: Setting defaults for activities created as part of case
November 18, 2014, 05:58:25 pm
Thanks for replying, Erik. I'm using 4.5.3. I can't see any option to set defaults on the timeline except the activity status, and I can't find any documentation that mentions the ability to set activity defaults.

No worries, I'll just write a custom extension :)

amberau

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.5
Re: Setting defaults for activities created as part of case
November 18, 2014, 11:08:35 pm
As an update: had a closer look at the internal workings of the CiviCase processor for creating new cases and it appears that mine are simply not working properly - the subject is not being set, and the client is not being set as the target for the activity. This is true whether I define the the case through the user interface or in XML (the user interface doesn't allow you to set the subject though, as far as I can tell).

Not sure what is happening here, but will continue to investigate and report if this turns out to be a bug.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Setting defaults for activities created as part of case
November 19, 2014, 02:39:27 am
We have done a few custom extensions on cases, give me a shout if you run into weird stuff. CiviCase behaves a little differently from other entities when you get to hooks :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

amberau

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.5
Re: Setting defaults for activities created as part of case
November 19, 2014, 03:00:14 am
Thanks Erik, will do. For the moment I have it working with a custom extension that just overrides Process.php - far from ideal but it will allow me to get people using the cases I'm developing and I can massage it later ;)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Setting defaults for activities created as part of case
November 19, 2014, 03:06:40 am
Sounds like a plan  :) Enjoy!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Setting defaults for activities created as part of case

This forum was archived on 2017-11-26.