Context:
There is a project with an issue type that requires buy-off from several teams. There is a field for each team that captures the status of their approval. Each field has the options of "pending" or "approved".
Desired state:
To make it easier to know how many approvals are left for each issue, we'd like a field that captures the number of these custom fields with "pending" set as the value. It needs to update automatically.
Example:
- Team 1 Status = approved
- Team 2 Status = pending
- Team 3 Status = approved
- Team 4 Status = pending
- Remaining Approval Count = 2