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) »
  • "Open Case" activity not created when case is first made
Pages: [1]

Author Topic: "Open Case" activity not created when case is first made  (Read 911 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
"Open Case" activity not created when case is first made
December 19, 2011, 01:49:53 pm
I am having trouble getting the "open case" case type to be created when a case is created.  The case is created, but no activity.  The reason this matters is that cases with zero activities seem to not show up in "Find Cases" no matter the search parameters.  civi 4.0.8


This is my configuration file for the case type:
Code: [Select]
<?xml version="1.0" encoding="iso-8859-1" ?>

<CaseType>
  <name>Tourism</name>
 
  <ActivityTypes>
    <ActivityType>
      <name>Open Case</name>
      <max_instances>1</max_instances>
    </ActivityType>
<ActivityType>
      <name>WSIB intake</name>
    </ActivityType>
<ActivityType>
      <name>ODSP intake</name>
    </ActivityType>
<ActivityType>
      <name>OW intake</name>
    </ActivityType>
<ActivityType>
      <name>Change Case Type</name>
    </ActivityType>
    <ActivityType>
      <name>Change Case Status</name>
    </ActivityType>
    <ActivityType>
      <name>Change Case Start Date</name>
    </ActivityType>
<ActivityType>
      <name>Follow up</name>
    </ActivityType>
<ActivityType>
      <name>Phone Call</name>
    </ActivityType>
<ActivityType>
      <name>Email</name>
    </ActivityType>
<ActivityType>
      <name>Meeting</name>
    </ActivityType>
  </ActivityTypes>

  <CaseRoles>
    <RelationshipType>
        <name>Internal CM</name>
    </RelationshipType>
    <RelationshipType>
        <name>External CM</name>
    </RelationshipType>
  </CaseRoles>
 
</CaseType>


Here is my Settings.xml file:
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<Settings>
<!-- List the group whose members should appear as contacts on all Manage Case screens.
Only one group name is supported for now.
It needs to match the name column in the civicrm_group table (not the title), so avoid using space characters. -->
<group name="Resources" />
<!-- Set this to 1 if you want case activity emails to be redacted -->
        <RedactActivityEmail>0</RedactActivityEmail>
<!-- Set this to 1 if you want to allow multiple clients to be associated with a single case -->
<AllowMultipleCaseClients>0</AllowMultipleCaseClients>
<!-- Set this to 1 if you want to have activity types on Manage Case
screen sorted in XML file order, default is alphabetical -->
<NaturalActivityTypeSort>0</NaturalActivityTypeSort>
<!-- Add activity types which should NOT be editable here with editable = 0 -->
<ActivityTypes>
<ActivityType>
        <name>Change Case Status</name>
<editable>0</editable>
        </ActivityType>
<ActivityType>
        <name>Change Case Start Date</name>
<editable>0</editable>
        </ActivityType>
</ActivityTypes>
</Settings>
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: "Open Case" activity not created when case is first made
December 19, 2011, 01:55:47 pm
I found the solution, here it is for all.

An <ActivitySet> must exist in the .xml configuration file for the Case type, at a bare minimum that has Open Case as an activity type.  This is what I put in my case .xml file.

Code: [Select]
  <ActivitySets>
    <ActivitySet>
      <name>standard_timeline</name>
      <label>Standard Timeline</label>
      <timeline>true</timeline>
      <ActivityTypes>
        <ActivityType>
          <name>Open Case</name>
          <status>Completed</status>
        </ActivityType>
      </ActivityTypes>
    </ActivitySet>
  </ActivitySets>

I have updated the documentation.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • "Open Case" activity not created when case is first made

This forum was archived on 2017-11-26.