Nifty PM icon

Nifty PM

Interact with Nifty PM API for project management

Task → Add Comment

AI-generated

Summary

Add a comment to a Nifty PM task, optionally with an attached image.

Inputs

  • taskId (required) — The task to add a comment to. Select from list via project/task search or provide an ID string (e.g. abc123). Routes task_id in the request body.
  • comment (required) — The comment text. Routes text in the request body.
  • messageType — The type of message. Hidden parameter, defaults to text. Routes type in the request body.
  • attachImage — Whether to attach an image to the comment. Defaults to false. When true, exposes imageSource, binaryPropertyName, and MinIO/S3 settings.
  • imageSource — Source of the image. Options: binaryData (uses binary property from previous node) or url (direct image URL). Defaults to binaryData.
  • binaryPropertyName (required) — Name of the binary property containing the image. Defaults to data. Only shown when attachImage is true and imageSource is binaryData.
  • imageUrl (required) — URL of the image to attach. Defaults to ''. Only shown when attachImage is true and imageSource is url. Routes external_files as [[ $value ]].
  • minioSettings — Configuration for uploading images to MinIO/S3. Only shown when attachImage is true and imageSource is binaryData. Contains endpoint, bucket, access key, secret key, public URL base, and region.
  • requestOptions — Node-level request settings including batching (items per batch, batch interval), SSL certificate validation, HTTP proxy, and timeout in milliseconds.

Output shape

The Nifty PM API response, typically containing the created comment object.

Side effects include a POST request to the Nifty PM task comment endpoint. If an image is configured for attachment, it is uploaded to the specified MinIO/S3 bucket prior to comment creation.

Examples

Example 1: Add a simple text comment to a task selected from a previous node's list.

Set taskId via resource locator (list mode), comment to desired text. Leave attachImage unchecked.

Example 2: Add a comment with an image from binary data.

Set taskId, comment, enable attachImage, set imageSource to binaryData, configure binaryPropertyName and minioSettings as needed.

Discussion