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) »
  • Add Case role to Open Case Activity
Pages: [1]

Author Topic: Add Case role to Open Case Activity  (Read 549 times)

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Add Case role to Open Case Activity
March 22, 2015, 07:09:55 am
Hi all,

I'm trying to add the ability to assign the case coordinator role in the open case activity form.
It seems that this is a logical role to add on case creation.

Anyone have any ideas on how to do it?

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: Add Case role to Open Case Activity
March 22, 2015, 05:35:51 pm
See here http://book.civicrm.org/user/current/case-management/setup/ where it says "Assign to Creator".

Or you can manually put it in the xml in the <CaseRoles> section by adding <creator>1</creator> under the type, e.g.
<CaseRoles>
  <RelationshipType>
      <name>Case Coordinator</name>
      <creator>1</creator>
  </RelationshipType>
</CaseRoles>

If you mean to assign it manually to someone other than the creator at the same time as you're creating the case, then I think you'd need to add a custom field and some custom code to do something with it.

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Add Case role to Open Case Activity
March 23, 2015, 01:33:09 am
Thanks cowboy.

I did see that stuff, but in our case we'd probably have to set it up for manual creation.

I'm looking into the custom field route.

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: Add Case role to Open Case Activity
March 23, 2015, 07:36:55 am
You could also edit the open case activity type definition - (under administer - customize - activity types) - to add some instructions about changing the case role after clicking save, and then at least people would see those instructions when creating the case.

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Add Case role to Open Case Activity
March 23, 2015, 11:13:23 am
Great minds Cowboy!

I just did that as a temporary solution!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Add Case role to Open Case Activity

This forum was archived on 2017-11-26.