Locations On Records Design - edmozley/freeitsm GitHub Wiki
๐ A location on people, tickets, contracts and projects - design (#311)
The last part of #311. System โ Locations (5.3.0) made locations one list for everything; this puts a location on the records that need one. Related: Locations ยท Locations - Developer Guide ยท Assets and All companies - design.
The shape
- People, tickets, contracts and projects each get one Location: a real location from System โ Locations - the record's own company's, or a shared one - shown as its full path (UK > London > Floor 2).
- Built like the cost centre field, which already works this way on people and contracts: checked against the record's company, and checked again if the record moves company.
- Recorded in each record's history where it keeps one, in the REST API, and translated.
Decisions
Put to Ed on 15 November 2026. His answers are what is built.
| Question | Decision | Why |
|---|---|---|
| A person's Location and the directory's Office text | A separate field. Office stays the text Active Directory, Entra or CardDAV fill in; Location is picked from the tree | No risk to directory sync, and no guessing which location "London HQ" means |
| Where a new ticket's Location comes from | The requester's location, by every route (email, portal, chat, catalogue, API, workflows...), editable - and a Tickets setting, on by default, so an install that does not want it can switch it off | Most tickets are about where the requester is; the setting keeps it optional. A requester who moves later does not change old tickets |
| Deleting a location that something points at | Refused while in use, with a pointer to a new tool - System โ Maintenance โ Locations in use - that lists everything using a location and moves it all to another location, or clears it | Nothing loses its location silently; the tool makes resolving it one step instead of hundreds of edits |
Assets too (Ed, 16 November 2026): "deleting a location while in use should be refused but it should signpost to a tool in System โ Maintenance that will help them fix the problem" - so a location assets point at is refused as well, and the tool moves or clears assets with everything else, recording it in each asset's history.
Status
Built for 5.4.0 (changelog #2954-#2956): the field on all four records, the requester's location on a new ticket by every route (the setting is in Tickets โ Settings โ General), the refusal and System โ Maintenance โ Locations in use. User guide: Locations. Developer guide: A location on records.
Not in this
- No mapping from the Office text to a location (it may come later as a Maintenance tool, if asked for).
- The rota's Office / WFH list (
rota_locations) is a different thing and stays separate.