> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/engineering-product-lifecycle-and-quality/release-ready-capa.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Release Ready CAPA

Validates CAPA release gates, optionally patches owner/target, fires Release, and verifies Released state.

| Business area                               | Action type                                |
| ------------------------------------------- | ------------------------------------------ |
| Engineering, Product Lifecycle, and Quality | Updates IFS Cloud data after user approval |

## Overview

A CAPA in IFS Cloud (NcrCorrectiveAction, table NCR\_CORRECTIVE\_ACTION\_TAB) starts in Created. Releasing it (state event Release, Created → Released) commits the organization to act: IFS rejects the release unless a responsible person (ResponsiblePersonId) and a target date (TargetDate) are entered, and on release it creates the first CAPA action line (NcrCorrectiveActionLine) copying that owner and date (Do\_Release\_\_\_ in NcrCorrectiveAction.plsql).

The IFS Cloud integration releases CAPAs after validation.

## How it works

{% stepper %}
{% step %}
Get CAPA Release Context.
{% endstep %}

{% step %}
Get CAPA Action Lines.
{% endstep %}

{% step %}
Check CAPA Release Gate.
{% endstep %}

{% step %}
Release CAPA with approvaltoken.
{% endstep %}

{% step %}
Verify CAPA Released.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one CAPA with type, description, company/site, root cause, source NCR/MRB, owner, target date and connected objects text.
* Show existing action lines (normally none before first release).
* Validate the release gate: state Created, owner present and resolvable to a person, target date present and not before creation date.
* Flag warnings: target date in the past ("Overdue" by TargetDateDiffStatus), no root cause, no description/notes.
* Fill missing ResponsiblePersonId / TargetDate from user input before releasing (single PATCH with ETag).
* Run the Release state event for exactly one CAPA after explicit approval.
* Read back the CAPA state and the generated action line.

{% hint style="info" %}
This skill keeps a human in the loop. It previews every change and updates IFS Cloud only after a user approves it.
{% endhint %}

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                             |
| --------- | -------------------------------------- |
| QUANCR    | CorrectiveAndPreventiveActionsHandling |
| QUANCR    | CorrectiveAndPreventiveActionHandling  |

## Version compatibility

| Projection                             | Supported IFS Cloud releases |
| -------------------------------------- | ---------------------------- |
| CorrectiveAndPreventiveActionsHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CorrectiveAndPreventiveActionHandling  | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Write paths require explicit user confirmation or authorization where configured.
