mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
27 lines
1.4 KiB
Markdown
27 lines
1.4 KiB
Markdown
---
|
|
Title: Task Comments service
|
|
Added: v6.0.0
|
|
Status: Active
|
|
Last reviewed: 2022-12-19
|
|
---
|
|
|
|
# Task Comments Service
|
|
|
|
Adds and retrieves comments for task and process instances in Process Services.
|
|
|
|
## API
|
|
|
|
- **add**(id: `string`, message: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`>`<br/>
|
|
Adds a comment to a task.
|
|
- _id:_ `string` - ID of the target task
|
|
- _message:_ `string` - Text for the comment
|
|
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`>` - Details about the comment
|
|
- **get**(id: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`[]>`<br/>
|
|
Gets all comments that have been added to a task.
|
|
- _id:_ `string` - ID of the target task
|
|
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`CommentModel`](../../../lib/core/src/lib/models/comment.model.ts)`[]>` - Details for each comment
|
|
- **getUserImage**(userId: `string`): `string`<br/>
|
|
Gets the URL for the user's profile image.
|
|
- _userId:_ `string` - ID of the user
|
|
- **Returns** `string` - URL for the user's profile image
|