What do you need help with?

We are here and ready to help.

Case Object

The case object is returns a selected case. The case id is loaded by the id in the URL.

https://support.supportbench.net/case/C-1005/

If no case id is supplied, then the object will be null.

To retrive a case, you can access by calling it directly within a tag.

{{ sb.case.id }}

id

Returns the id of the case.

 

category_id

Returns the category_id of the case.

 

category

Returns the category of the case.

 

issue

Returns the issue of the case.

 

issue_visible

Returns whether to display the issue based on the policy.

 

summary

Returns the summary of the case.

 

summary_visible

Returns whether to display the summary of the case based on the policy.

 

subject

Returns the subject of the case.

 

priority

Returns the priority of the case.

 

priority_visible

Returns whether to display the priority of the case based on the policy.

 

owner

Returns the owner name of the case.

 

queue

Returns the queue name of the case.

 

outcome

Returns the outcome of the case.

 

status_id

Returns the status id of the case. 0 = closed.

 

status

Returns the status name of the case .

 

company

Returns the company name associated to the contant if associated.

 

created_by

Returns the name of the person who created the case.

 

avatar

Returns the avatar of the person who created the case.

 

asset_id

Returns the asset id of the case.

 

asset

Returns the asset name of the case.

 

asset_visible

Returns whether to display the asset of the case based on the policy.

 

support_level

Returns the current support level.

 

sla

Returns the date of the sla expiry.

 

created

Returns the date the case was created.

 

modified

Returns the date the last time the case was modified.

 

tags

Returns a list of tags associated to the case.

 

fields

Returns the custom fields associated to the case.

 

fields.name

Returns the name of the custom field.

 

fields.field_id

Returns the field_id of the field.

 

fields.type_id

Returns the type_id of the field.

 

fields.value

Returns the saved value of the field (same data as the content).

 

fields.value_id

Returns the value id of the field.  Typically this is from a drop down list field type.

 

fields.content

Returns the saved content of the field (same data as the value).

 

fields.visible

Returns whether to display the field of the case based on the policy.

 

fields.required

Returns whether the field is requiredbased on the policy.

 

activities

Returns a list of activities related to the case.

 

activities.id

Returns the id of the activity.

 

activities.from

Returns the the from address of the activity if coming from an email.

 

activities.to

Returns the to address of the person the email was sent to.

 

activities.cc

Returns the cc addresses of the people the email was sent to.

 

activities.subject

Returns the subject line of the activity.

 

activities.type

Returns the activity type name of the activity.

 

activities.content

Returns the content of the activity in HTML.

 

activities.created_by

Returns the name of the person who created the activity.

 

activities.avatar

Returns the avatar image path of the person who created the activity.

 

activities.modified

Returns the last date the activity was modified.

 

activities.created

Returns the creation date of the activity.

 

attachments

Returns a list of attachments related to the activity.

 

attachments.name

Returns the name of the attachment.

 

attachments.path

Returns the file path of the attachment.

 

attachments.size

Returns the size in bytes of the attachment.

 

Facebook Share Tweet

Was this article helpfu?

Yes No

Thank you for voting

×
Select company

You are related to multiple companies. Please select the company you wish to login as.