I’m not exactly how to describe this, so maybe it’s been requested before (or can already be done in some way)…apologies if this sounds confusing!
I wish we could use a single formula where the value is set dynamically by the context it’s being viewed in.
Or put in another way, I wish we could use the “this” function within formula fields to reference entities in related databases.
Here’s an extremely simple and common use case. If I wanted a count of “tasks” that are assigned to a “user” in a “sprint”, I’d like to use a a single formula field on the user that looks something like:
Tasks.Filter(Sprint.Name = This.Sprint).Count()
So if I looked at that field while inside of different Sprint entities, it could have a unique value:
- In Sprint 1 the value could be 12
- In Sprint 2 the value could be 15
- In Sprint 3 the value could be 10
Obviously, if I viewed the field directly on the entity on within the raw database, there is no context provided for that formula to work and it would need to be displayed as empty/blank or something like “Error: Context Required”
Currently, the only way to achieve such a basic metric is by having a ton of formulas that would need constant upkeep, or a report which isn’t able to have it’s data displayed in a context/relation view.
- Creating fields in the sprint database for each user called “User X’s Task Count” with the hardcoded formula:
Tasks.Filter(User.Name = “User 1”).Count()
Not really sustainable since each sprint has different/new users and it would be crazy to have to micromanage formulas fields for each user all the time.
- Creating a field on the user database for each sprint with the hardcoded formula
Tasks.Filter(Sprint.Name = “Sprint 1”).Count()
Unsustainable for the same reasons as #1, only even crazier since we have new sprints every week, so we’d need to create multiple new formula fields each sprint, for each user!
- Create a report, since they allow the “This” function to be used more broadly
Doesn’t really solve what I’m looking for, which is to have the data displayed directly in context/relation views alongside their entities and not have to go to a completely different view to access them.