Release work item
release_work_itemReturn a claimed approval work item to its offered group undecided so another group member can claim it; validates it is open, claimed by you, and group-assigned before release.
Instructions
Give an approval work item you claimed (claimed: true in list_work_items) back to the group it was offered to, undecided, so anyone in the group can claim it. Before writing anything it reads the case as you and refuses an item that is closed, not claimed, held by someone else, or assigned to you directly rather than offered to a group. The release executes as you. userName and roleName are the midPoint names (the unique name attribute, such as a login, not display names) of the objects the OIDs point to, as list and get results give them; the call is refused when they don't match, so the person confirming it reads the right names. Respects the write gate. When you write to a person, name people, roles and requests by their display names rather than OIDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caseOid | Yes | OID of the case (caseOid from list_work_items) | |
| roleName | Yes | midPoint name of the role (or other object) the request adds or removes; empty only when midPoint doesn't show you its name | |
| userName | Yes | midPoint name (login) of the person the request is for; empty only when midPoint doesn't show you their name | |
| workItemId | Yes | id of the work item within the case (id from list_work_items) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | the JSON body of the midPoint REST request, when it has one | |
| case | No | the case name | |
| tool | Yes | the tool that produced this result | |
| acting | Yes | who midPoint executed this call as | |
| dryRun | Yes | ||
| method | Yes | ||
| object | No | the focus the case changes | |
| result | No | ||
| server | Yes | write gate, features and versions of this server | |
| target | No | what was requested | |
| applied | Yes | ||
| caseOid | Yes | ||
| subject | Yes | the identity midPoint executed the call as (or, in a dry run, would) | |
| summary | Yes | ||
| endpoint | Yes | ||
| confirmed | Yes | true when the case read back after the call shows the change: a claimed item held by you alone, or a released item held by nobody (or no longer shown to you) | |
| offeredTo | Yes | the group the item is offered to, or was claimed from | |
| workItemId | Yes |