Skip to content

feat: Add transfer tracked entity program owner OrgUnit - #561

Merged
larshelge merged 2 commits into
masterfrom
feat_transfer_tei_org_unit
Aug 5, 2026
Merged

feat: Add transfer tracked entity program owner OrgUnit#561
larshelge merged 2 commits into
masterfrom
feat_transfer_tei_org_unit

Conversation

@LeonardoGonzales

Copy link
Copy Markdown
Collaborator
  • Adds Dhis2.transferTrackedEntityProgramOwnerOrgUnit(trackedEntity, program, orgUnit), which calls PUT /api/tracker/ownership/transfer to transfer the ownership org unit of a tracked entity for a given program.
  • The endpoint's query parameter names changed between DHIS2 versions, so the method checks SystemInfo.getSystemVersion() and uses trackedEntity/orgUnit for DHIS2 ≥ 2.42, and trackedEntityInstance/ou for earlier versions.

@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

@LeonardoGonzales
LeonardoGonzales marked this pull request as draft August 5, 2026 09:26
@LeonardoGonzales
LeonardoGonzales marked this pull request as ready for review August 5, 2026 09:41
@larshelge
larshelge merged commit 4a28201 into master Aug 5, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants