Answers.Body: <p>As Demerit said it is intentionally not supported by CiviCRM to list Case activities under Activity tabs. We had to implement 2 lines of code via extension to have that available under Activity tab.</p>
  
  <pre><code>/**
   * Implements hook_civicrm_config().
   *
   * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
   */
  function activitydashboard_civicrm_config(&amp;$config) {
    CRM_Core_Component::getEnabledComponents();
    Civi::$statics['CRM_Core_Component']['info']['CiviCase']-&gt;info['showActivitiesInCore'] = 1;
  }
  </code></pre>
  
  <p>If you implement above code than you may also need to apply fix from <a href="https://github.com/civicrm/civicrm-core/pull/16353" rel="nofollow noreferrer">PR</a> which fixes an error in core. </p>
  
  <p>Thanks</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-23T10:21:42.173Z
Answers.Text: Thanks for the fix, Pradeep. Do you know WHY case activities were hidden? PS I've added a review to your PR.
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-22T21:20:57.617Z
Answers.LastActivityDate: 2020-01-22T21:20:57.617Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>That is how it was intended. Let me see if I can find the original spec for more info.</p>
  
  <p>UPDATE: Haven't found it yet but did find <a href="https://issues.civicrm.org/jira/browse/CRM-3829" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-3829</a> and also a reference that it is "in the spec" <a href="https://forum.civicrm.org/index.php%3Ftopic=6895.0.html" rel="nofollow noreferrer">https://forum.civicrm.org/index.php%3Ftopic=6895.0.html</a></p>
  
  <p>I know the reason is somewhere, but it has come up several times. Regardless of the original reason it seems to be one of the many things in Civi that 50% of people want it one way and 50% another.</p>
  
  <p>I haven't tested this but I wonder what happens if you change <code>showActivitiesInCore</code> to <code>1</code> in CRM/Case/Info.php...</p>
  
  <p>ANOTHER UPDATE: As I'm looking at the <a href="https://github.com/civicrm/civicrm-core/pull/16360" rel="nofollow noreferrer">PR</a> I'm reminded that the CiviCase project at the time was also being used as a sandbox for this new thing called jQuery (the rest of civi used dojo), and so part of the reason besides business reasons might have been technical, as in "let's keep this separate so we can play with it without touching the rest of core". There's also some actions like "File on Case" that require some attention when the activity can live on both sides. I also remember at one time, but it seems fixed now, that there were multiple link formats to get to editing an activity, and if you used a non-case one the activity would get "downgraded" to a regular activity and get disconnected from the case.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-22T14:55:19.660Z
Answers.Text: Thanks, I'd appreciate that. I can't figure out a single reason this behaviour would be helpful!
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-22T15:03:40.887Z
Answers.Text: I'm looking through the old wiki and jira but haven't found it yet. It had to do partly with segregation but there was more if I remember correctly.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-22T15:16:01.130Z
Answers.Text: wow you've been around CiviCRM for a while then?!
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-22T16:01:51.477Z
Answers.Text: Wouldn't mind seeing that too. I'd assumed that, as the 'case' tab on the contact record shows all the cases and associated activities, it's likely down to permission levels for cases and the need to keep those separate from just the 'normal' activities.
Answers.UserDisplayName: RebeccaTregenna
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-23T10:26:16.183Z
Answers.Text: Thanks for the update. "50% one way" - sounds like good case for it being a configurable setting to me!
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-22T14:41:35.000Z
Answers.LastActivityDate: 2020-01-23T15:38:59.600Z
Answers.LastEditDate: 2020-01-23T15:38:59.600Z
Answers.UserDisplayName: Demerit
Body: <p>I have a case and it has some activities which are assigned to Betty. But when I visit Betty's contact record the activities are not listed there, neither is the case, in fact there seems to be absolutely no trace that this activity has been assigned to them.</p>
  
  <p>The Activity tab for a contact record is useful for getting an overview of a contact's involvement with the organisation, so I don't understand why this would be missing?</p>
  
  <p>Is this the designed behaviour, and if so, why?</p>
  
  <p>(Civi 5.21 / Drupal 7)</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-23T11:17:02.743Z
Comments.Text: Nb. I have made a pull request that would make showing/hiding activities a setting for CiviCase: https://github.com/civicrm/civicrm-core/pull/16360
Comments.UserDisplayName: artfulrobot
Tags: <civicase>
Title: Why are activities to do with a case hidden from contact records?
ThreadText: # Why are activities to do with a case hidden from contact records?
  
  (Asked by: username_0 on 2020-01-22)
  
  I have a case and it has some activities which are assigned to Betty. But when I visit Betty's contact record the activities are not listed there, neither is the case, in fact there seems to be absolutely no trace that this activity has been assigned to them.
  
  The Activity tab for a contact record is useful for getting an overview of a contact's involvement with the organisation, so I don't understand why this would be missing?
  
  Is this the designed behaviour, and if so, why?
  
  (Civi 5.21 / Drupal 7)
  
  **Tags:** civicase
  
  > **Comments:**
  > **username_0**: Nb. I have made a pull request that would make showing/hiding activities a setting for CiviCase: https://github.com/civicrm/civicrm-core/pull/16360  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-01-22. Score: 1 | Accepted answer
  
  As username_2 said it is intentionally not supported by CiviCRM to list Case activities under Activity tabs. We had to implement 2 lines of code via extension to have that available under Activity tab.
  
  ```
  /**
   * Implements hook_civicrm_config().
   *
   * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
   */
  function activitydashboard_civicrm_config(&$config) {
    CRM_Core_Component::getEnabledComponents();
    Civi::$statics['CRM_Core_Component']['info']['CiviCase']->info['showActivitiesInCore'] = 1;
  }
  
  ```
  
  If you implement above code than you may also need to apply fix from [PR](https://github.com/civicrm/civicrm-core/pull/16353) which fixes an error in core.
  
  Thanks
  
  username_1
  
  > **Comments:**
  > **username_0**: Thanks for the fix, username_1. Do you know WHY case activities were hidden? PS I've added a review to your PR.  
  
  ---
  
  ### Answer by username_2 on 2020-01-22. Score: 1
  
  That is how it was intended. Let me see if I can find the original spec for more info.
  
  UPDATE: Haven't found it yet but did find <https://issues.civicrm.org/jira/browse/CRM-3829> and also a reference that it is "in the spec" <https://forum.civicrm.org/index.php%3Ftopic=6895.0.html>
  
  I know the reason is somewhere, but it has come up several times. Regardless of the original reason it seems to be one of the many things in Civi that 50% of people want it one way and 50% another.
  
  I haven't tested this but I wonder what happens if you change `showActivitiesInCore` to `1` in CRM/Case/Info.php...
  
  ANOTHER UPDATE: As I'm looking at the [PR](https://github.com/civicrm/civicrm-core/pull/16360) I'm reminded that the CiviCase project at the time was also being used as a sandbox for this new thing called jQuery (the rest of civi used dojo), and so part of the reason besides business reasons might have been technical, as in "let's keep this separate so we can play with it without touching the rest of core". There's also some actions like "File on Case" that require some attention when the activity can live on both sides. I also remember at one time, but it seems fixed now, that there were multiple link formats to get to editing an activity, and if you used a non-case one the activity would get "downgraded" to a regular activity and get disconnected from the case.
  
  > **Comments:**
  > **username_0**: Thanks, I'd appreciate that. I can't figure out a single reason this behaviour would be helpful!  
  > **username_2**: I'm looking through the old wiki and jira but haven't found it yet. It had to do partly with segregation but there was more if I remember correctly.  
  > **username_0**: wow you've been around CiviCRM for a while then?!  
  > **username_3**: Wouldn't mind seeing that too. I'd assumed that, as the 'case' tab on the contact record shows all the cases and associated activities, it's likely down to permission levels for cases and the need to keep those separate from just the 'normal' activities.  
  > **username_0**: Thanks for the update. "50% one way" - sounds like good case for it being a configurable setting to me!  
  
  ---
  
  