Property description

The commentType property defines comment types available in the comment section of an object page.

Minimal JSON

{
  "key": "",
  "name": "",
  "colorKey": ""
}
{
  "key": "feedback",
  "commentTypes": [
    {
      "key": "suggestion",
      "name": "Suggestion",
      "colorKey": "core_status_approved",
      "workflowKey": "feedback_workflow",
      "isVisible": true,
      "isRemovable": true
    }
  ]
}

Example taken from Custom Comments and Comment Workflows.

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the comment type.stringYes
nameName of the comment type used as default EN translation.stringYes
colorKeyKey of the color used to visually represent the asset. Use predefined colors from Settings > Configuration > Colors. For more information, see colors.stringYes
descriptionDescription of the property.stringNo
isRemovableDetermines whether the comment type tag can be removed after creation.booleanNo
isVisibleDetermines whether the comment type tag is visible. False value is usually used for the default comment type.booleanNo
stateCurrent status of the asset. Supported options are: active (asset is active and visible in the environment), inactive (asset is inactive and hidden, serves as a soft delete), hidden (asset is active but hidden in the environment).stringNo
translationsArray of translation keys and their definitions that determine how the text is displayed in the UI for the specific asset. For more information, see Translations.arrayNo
workflowKeyKey of the workflow that allow the comment type.string
workflowStateKeysArray of keys of workflow states that allow the comment type.string