Test capacity requests locally

This guide explains how to test cross-org capacity requests with three sibling organisations (CRTEST-A, CRTEST-B, CRTEST-C).

Where to create a cross-org request

  1. Project → Capacity demand — Open a project, go to Capacity demand. The section "Capacity requests (cross-org)" shows existing requests and a New capacity request link.
  2. New capacity request form — Select the requested organisation (same root as Project Owner Organisation (POO)), fill in role × month person-months, submit.

See Cross-org capacity requests for full entry points and screenshots.

Setup

  1. Set in .env.dev:
    • PERSON_CAPACITY_ENABLED=true
    • CAPACITY_REQUESTS_ENABLED=true
  2. Run migrations (including capacity_requests tables).
  3. Seed test data:
    uv run python scripts/seed_capacity_request_test_data.py
    
  4. Start the app, open project "Capacity request test", go to Capacity demand.
  5. Click New capacity request, select CRTEST-B or CRTEST-C, enter person-months, save.
  6. As another organisation: Organisations → CRTEST-B → Capacity requests → Incoming → respond.

See also