Answers.Body: <p>If you remove it, then how would you close a case? It won't recognize the Change Case Status activity as actually closing the case.</p>
  
  <p>If you want relationships to exist outside of a case then you can use regular non-case relationships. That's really the only technical difference between roles and relationships. And relationships can still have start/end dates if you need to record that.</p>
  
  <p>And you can still see regular relationships on the manage case screen, under the Other Relationships accordion.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-09T20:56:47.683Z
Answers.Text: If closing a case (ie using a case status with status class "closed") only affects the case role relationships, i don't see the benefit over just searching for cases with status "resolved" - unless somewhere in civi uses it?
  
  Benefit to me of keeping cases technically open is that the case roles are preserved and can be easily seen when viewing a "closed" case. At the moment, you need to search through activities or relationships to see who the case manager etc was. 
  
  
  I don't want to use the regular relationships for cases as i can't set specific required roles and users will forget.
Answers.UserDisplayName: user3016811
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-29T19:32:32.097Z
Answers.Text: In most scenarios, we close a case to indicate we've 'finished' something. That workflow, whatever we set up, is completed. So being able to see how many are still open vs. how many we've finished is important. It seems you're using CiviCase as a workaround for something else, not necessarily for a pre-set workflow - so this may be warranted for you but keep in mind other functionality may come in the future that affects more than just relationships attached to cases.
Answers.UserDisplayName: RayWright
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-28T15:58:12.663Z
Answers.Text: This is old but stackexchange bumped it so just adding that the "bug" about not seeing roles when a case is closed is still outstanding - see also https://lab.civicrm.org/dev/core/-/issues/1401
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-09T18:21:20.040Z
Answers.LastActivityDate: 2017-12-09T18:26:21.563Z
Answers.LastEditDate: 2017-12-09T18:26:21.563Z
Answers.UserDisplayName: Demerit
Body: <p>I can see that the status class (opened or closed) will end case role relationships, but is it used for anything else?</p>
  
  <p>edit for clarification: Each case status has a "status class" - open is "opened" and resolved is "closed" by default. The only effect that changing a case status to resolved/closed that i can see, beyond that status, is that case role relationships are assigned an end date and so are inactive, so i'm wondering if this status class is used anywhere else that i've not noticed.</p>
  
  <p>Reason being - i am considering removing "closed" status class from all status types, so that case role relationships are maintained whatever the status and can be ended manually if necessary instead.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-09T10:42:28.417Z
Comments.Text: Can you add a little more detail to your question? I find it hard to determine what you are actually asking here.
Comments.UserDisplayName: ErikH - CiviCooP
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-09T11:34:42.753Z
Comments.Text: Have edited the original question, hopefully makes more sense now.. (and my reason for asking)
Comments.UserDisplayName: user3016811
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-09T07:34:12.807Z
Comments.Text: Don't fully understand your use case. perhaps you could explain the work flow further
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-10T08:37:37.277Z
Comments.Text: My cases are sometimes re-opened, looked at by others etc. after they have been resolved, and the default behaviour makes it harder to work out who was involved with the case originally, because the relationships have been assigned an end date on case resolve.
  I've edited the "status class" for all case statuses to be "opened", so relationships are never ended, unless manually. I can still find resolved cases by searching for a status of resolved/closed.
  This seems to have worked fine as far as i can tell so i'm assuming that "status class" was indeed only used for ending relationships.
Comments.UserDisplayName: user3016811
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-01T13:56:18.280Z
Comments.Text: Since the time this question was originally asked it's become clearer that something got introduced that changed the way roles are displayed on manage case for closed cases - they didn't used to "disappear". The most recent proposal on this is here https://lab.civicrm.org/dev/core/issues/542
Comments.UserDisplayName: Demerit
Tags: <civicase>
Title: Case status "status class" - what is it used for?
ThreadText: # Case status "status class" - what is it used for?
  
  (Asked by: username_0 on 2017-12-09)
  
  I can see that the status class (opened or closed) will end case role relationships, but is it used for anything else?
  
  edit for clarification: Each case status has a "status class" - open is "opened" and resolved is "closed" by default. The only effect that changing a case status to resolved/closed that i can see, beyond that status, is that case role relationships are assigned an end date and so are inactive, so i'm wondering if this status class is used anywhere else that i've not noticed.
  
  Reason being - i am considering removing "closed" status class from all status types, so that case role relationships are maintained whatever the status and can be ended manually if necessary instead.
  
  **Tags:** civicase
  
  > **Comments:**
  > **username_1**: Can you add a little more detail to your question? I find it hard to determine what you are actually asking here.  
  > **username_0**: Have edited the original question, hopefully makes more sense now.. (and my reason for asking)  
  > **username_2**: Don't fully understand your use case. perhaps you could explain the work flow further  
  > **username_0**: My cases are sometimes re-opened, looked at by others etc. after they have been resolved, and the default behaviour makes it harder to work out who was involved with the case originally, because the relationships have been assigned an end date on case resolve. I've edited the "status class" for all case statuses to be "opened", so relationships are never ended, unless manually. I can still find resolved cases by searching for a status of resolved/closed. This seems to have worked fine as far as i can tell so i'm assuming that "status class" was indeed only used for ending relationships.  
  > **username_3**: Since the time this question was originally asked it's become clearer that something got introduced that changed the way roles are displayed on manage case for closed cases - they didn't used to "disappear". The most recent proposal on this is here https://lab.civicrm.org/dev/core/issues/542  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2017-12-09. Score: 0
  
  If you remove it, then how would you close a case? It won't recognize the Change Case Status activity as actually closing the case.
  
  If you want relationships to exist outside of a case then you can use regular non-case relationships. That's really the only technical difference between roles and relationships. And relationships can still have start/end dates if you need to record that.
  
  And you can still see regular relationships on the manage case screen, under the Other Relationships accordion.
  
  > **Comments:**
  > **username_0**: If closing a case (ie using a case status with status class "closed") only affects the case role relationships, i don't see the benefit over just searching for cases with status "resolved" - unless somewhere in civi uses it?  Benefit to me of keeping cases technically open is that the case roles are preserved and can be easily seen when viewing a "closed" case. At the moment, you need to search through activities or relationships to see who the case manager etc was.    I don't want to use the regular relationships for cases as i can't set specific required roles and users will forget.  
  > **username_4**: In most scenarios, we close a case to indicate we've 'finished' something. That workflow, whatever we set up, is completed. So being able to see how many are still open vs. how many we've finished is important. It seems you're using CiviCase as a workaround for something else, not necessarily for a pre-set workflow - so this may be warranted for you but keep in mind other functionality may come in the future that affects more than just relationships attached to cases.  
  > **username_3**: This is old but stackexchange bumped it so just adding that the "bug" about not seeing roles when a case is closed is still outstanding - see also https://lab.civicrm.org/dev/core/-/issues/1401  
  
  ---
  
  