haops_create_discussion
Create a discussion thread in a HAOps project, optionally linked to a Module, Feature, or Issue, or placed in a specific channel with a first message.
Instructions
Create a discussion thread in a HAOps project. Two modes: (1) Entity-linked — provide discussableType + discussableId to link to a Module/Feature/Issue (no channelId needed). (2) Channel-based — provide channelId (use haops_list_channels to find it). Can combine both. At least one of channelId or discussableType+discussableId is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Discussion type (optional, default: general) | |
| title | Yes | Discussion title | |
| verbose | No | If true, return the full API response instead of the compact summary (default: false) | |
| priority | No | Priority level (optional) | |
| channelId | No | UUID of the channel. Required for channel-based discussions. Use haops_list_channels to get valid channel UUIDs. | |
| projectSlug | Yes | The project slug (URL identifier) | |
| firstMessage | No | Initial message content for the discussion thread (optional). Use markdown formatting for best results. | |
| discussableId | No | UUID of the entity to link the discussion to. Required together with discussableType for entity-linked discussions. | |
| discussableType | No | Entity type to link the discussion to. For entity-linked discussions, provide both discussableType and discussableId (no channelId needed). | |
| firstMessageContentType | No | Content format for firstMessage (optional, default: markdown). Markdown is recommended for agents. |