Locations - edmozley/freeitsm GitHub Wiki

๐Ÿ“ Locations

Since 5.3.0; on people, tickets, contracts and projects since 5.4.0 ยท #311 ยท Developer guides: Locations ยท A location on records ยท Design: A location on records

Locations are the places your organisation works from - sites, buildings, floors and rooms - kept as one tree. They live on System โ†’ Locations.

They started out in Assets, for saying where each piece of kit is. They describe the organisation rather than the kit, so they moved up to System, where other parts of FreeITSM can use them too. Nothing moved in the database: it is the same list, and every asset kept its location.


Where to find them

Where Who What
System โ†’ Locations Administrators The tree, to add, rename, move and delete
Assets โ†’ Settings โ†’ Locations Anyone with the Manage locations permission in Assets The same tree, with a note that it is now used across FreeITSM (and, for an administrator, a link to System)

Both screens edit the same list, so a change in one shows in the other. The Assets tab stayed on purpose: System is for administrators only, and the asset managers who kept the list before should not need to become administrators to keep doing it. The Assets in-app help says where the list went, near the top of its first section.

Building the tree

  • Add adds a top-level location. The + on any location adds one inside it.
  • Edit (the pencil) renames a location or moves it under another parent. A location cannot be moved inside itself or one of its own sub-locations.
  • Delete (the bin) is refused while a location has sub-locations. It is refused too while assets, people, tickets, contracts or projects point at it (5.4.0): it says how many, and Open takes you to System โ†’ Maintenance โ†’ Locations in use (below).
  • Nest as deep or as shallow as you like, and each branch can differ: UK โ€บ London โ€บ Floor 2 beside a flat Data centre.

Companies and shared locations

On an install with more than one company, every location belongs to one company, and the tree shows the company chosen in the switcher in the top bar. A location such as a data centre that several companies use can be Shared with every company - see Shared asset locations for the rules.

Where locations are used

  • Assets - each asset's Location.

  • CMDB - a Location property on a class points at one (5.3.0, #312); deleting a location tells you first which CIs name it.

  • Forms - a Lookup field can search Locations, so a form can ask "Which office are you in?" and get a real location. Each one shows as its full path (UK > London > Floor 2), so two rooms called Floor 2 cannot be confused. Someone sees their own company's locations and the shared ones; tick Customers can use this on the portal to offer it on the portal. See Forms.

  • People (5.4.0) - where someone sits: Location in the person's details (Tickets โ†’ Users, Assets โ†’ People). It is separate from Office, which Active Directory, Entra or an address book may fill in with their own text - nothing is guessed from it.

  • Tickets (5.4.0) - what a ticket is about: Location among its properties. A new ticket takes its requester's location, by every route that makes one - email, the portal, chat and Teams, the catalogue, the API, workflows; a merged or split ticket takes the location of the ticket it came from. An analyst can change it, and it is recorded in the ticket's history. A requester who moves later does not change old tickets. Switch it off in Tickets โ†’ Settings โ†’ General โ†’ Location of a new ticket.

  • Contracts and projects (5.4.0) - the site a contract covers, or a project is about: Location on the edit form, shown on the contract and on the project's page.

Every record can only have its own company's locations or a shared one. A ticket or a person moved to another company keeps its location only if the new company can use it; otherwise it is cleared. All four are in the REST API as location ({id, name, path}), written as location_id.

Locations in use

System โ†’ Maintenance โ†’ Locations in use (5.4.0) is where a location something points at is let go. Pick a location to see how many assets, people, tickets, contracts and projects use it, with the first few of each, then:

  • Move - choose another location under Move them all to, and everything moves to it;
  • Clear - they keep no location.

Each record is checked against its own company: a record the new location is not open to is left as it was, and the page says how many. Assets, tickets and projects record the change in their history. Administrators can use it, and anyone who may manage locations in Assets; a shared location needs access to every company, as deleting one does.

Upgrading

Nothing to do. There is no schema change; System โ†’ Locations appears for administrators straight away.