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) »
  • Custom Status Classes
Pages: [1]

Author Topic: Custom Status Classes  (Read 2545 times)

MJCO

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviPal (CiviCRM + Drupal) lover
    • MJCO
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.xx
  • MySQL version: 5.5
  • PHP version: 5.4
Custom Status Classes
April 19, 2013, 03:08:57 pm
I'm wondering if it's possible to add custom status classes.

The use case is:

We require the following scenario:

Case Created: Status = 'New', Class = 'Opened'

Case Actioned: Status = One of many possible statuses, Class = 'Ongoing'

Case Action Completed: Status = One of many possible statuses, Class = 'Billing' (Case can now be billed)

Case Billing Completed: Status = 'Closed with Outcome' or 'Closed without Outcome', Class = 'Reviewing'

Case Reviewed: Status = 'Reviewed', Class = 'Closed'



This feature would allow us to achieve more granularity over how cases are sorted and allows for a more... semantic... use of statuses and classes... If this feature exists please point me to it, otherwise if there is a workaround that would also be acceptable. Failing either of these I wholeheartedly believe that making case status classes customisable, within reason, would add to the possibilities of the CiviCase module.
MJCO

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Custom Status Classes
April 20, 2013, 07:44:05 am
Did you have a look at Administer > CiviCase > Case statuses? Does that do you what you need?
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

MJCO

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviPal (CiviCRM + Drupal) lover
    • MJCO
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.xx
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Custom Status Classes
April 20, 2013, 09:31:21 am
That lets me add statuses with the class choices of: Opened or Closed it's those classes I want to add to. I can do it by adding status classes to the array in /CRM/Admin/Form/OptionValue.php around line 146. However a core-file override is not, imo, the best way to be doing this as it's somewhat... flaky when it comes to upgrades and I'm having trouble getting the override picked up when I upgrade.
MJCO

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Custom Status Classes
April 20, 2013, 11:38:12 pm
Quote
That lets me add statuses with the class choices of: Opened or Closed it's those classes I want to add to.
ah, ok
Quote
achieve more granularity over how cases are sorted
out of interest, why doesn't just adding new statuses meet your use case?
Quote
I wholeheartedly believe that making case status classes customisable, within reason, would add to the possibilities of the CiviCase module.
that is probably true.  if this is important to you, i suspect it is something that you could / should do yourself. if the use case makes sense more widely, it might not be too hard to turn your override into a patch for core.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Custom Status Classes

This forum was archived on 2017-11-26.