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) »
  • In 4.5 case roles must be individual to individual.
Pages: [1]

Author Topic: In 4.5 case roles must be individual to individual.  (Read 943 times)

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
In 4.5 case roles must be individual to individual.
September 04, 2014, 05:18:27 am
I am not an experienced user of CiviCase, so I am asking on this forum.

Unless I have missed something, it appears that in 4.5 you can only have case roles that are individual to individual relationships.

You can add roles that are individual to organisation to a case, but when you come to assign the role it is only names of individuals that appear in the contact selection box.

Is that how cases always work? 

I understand that it is people who have to interact with the client, but, with no experience of case management, I would have thought that sometimes you might have, say, a sponsoring organisation that you want to link to the case.

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: In 4.5 case roles must be individual to individual.
September 04, 2014, 06:35:39 pm
I do know that originally orgs couldn't be assigned as clients, so whenever that addition was made probably the corresponding role code was never updated. Ideally it would limit roles to the A-to-B (B-to-A?) types that correspond to the client type.

I don't remember the original reason for it, although looking at old wiki spec documents it suggests the original intention may have been partly for access control which I could see being a little more complex with relationships to orgs, but it may also have just been a decision of the form "we don't need it now and there's more important things to fit into the budget".

As a workaround, depending on the situation, an org that has a role in a case is likely to be involved with several cases, e.g. your law firm, so you can add the org to the global case contacts group (as defined in settings.xml) and it will appear on every case.

Betty Dolfing

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 4
  • PHP version: 5
Re: In 4.5 case roles must be individual to individual.
September 04, 2014, 11:44:41 pm
On a case when you use 'Add a new role' indeed you can only choose a relationship type of an individual.

As a workaround you can add the relationshiptype of an organisation in your XML under Case roles, so that it pops up in the tab with roles on the case. When applicable you can add the specific organisation on the case.

<CaseRoles>
    <RelationshipType>
        <name>Sponsor organisation</name>
    </RelationshipType>

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: In 4.5 case roles must be individual to individual.
September 05, 2014, 12:03:15 am
I am not sure we are all talking about the same thing.

I don't want to now how to get around  the issue as I don't use CiviCase on a production site.

I have been testing the new 4.5 case configuration UI to write the documentation and I am just stating the situation and asking if that will be problem for people that do use CiviCase. 

The situation is:
In 4.5 you can only use case roles that are individual to individual.  You can add a case roles that is individual to organisation in the case type (eg Sponsoring Company), but when you want to fill that role you can only select from individuals and, of course, this gives an error and can't be saved. 

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: In 4.5 case roles must be individual to individual.
September 05, 2014, 09:00:20 am
Agree that this restriction does not make sense and it ought to be relatively easy to remove it.
Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: In 4.5 case roles must be individual to individual.
September 05, 2014, 03:39:50 pm
This fixes it along with a couple other misc improvements to that screen:
https://github.com/civicrm/civicrm-core/pull/4060
Try asking your question on the new CiviCRM help site.

Aahar

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 3
  • CiviCRM version: 3.4 and 4.0
  • CMS version: Drupal 6.17, 6.x and Drupal 7.x
  • PHP version: 5.2
Re: In 4.5 case roles must be individual to individual.
January 19, 2015, 06:51:13 am
Will this be a part of next release.
Seems there have been releases after 5th Sept 2014 and this patch has not made it into the latest releases.

How can I help in this?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: In 4.5 case roles must be individual to individual.
January 19, 2015, 01:45:49 pm
I just tried it in 4.5 as well as 4.6 and it is working as I would expect. As a test I added the "employer of" role to a case type, and then it prompted me to add an organization to that role (individual and household were not allowed, as I expected).
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • In 4.5 case roles must be individual to individual.

This forum was archived on 2017-11-26.