Adding traceability to the updating/adding values

Hi,

We’d like to add traceability to our system so that we can see who added or updated an attribute. For now, we only want to implement this for the values part.

When a new value is added, a new attribute — for example, Responsible — should automatically be added to that value. This attribute would store the name of the logged-in user who made the change.

In other words, it would work similarly to the existing Timestamp attribute for values, but instead of recording the current time, it would record the logged in user responsible for the change.

Thanks in advance for your response!

You can achieve that by adding a property like this:

'Responsible': text ~> ^ ^ ^ ^ .'Users'[] @expected: user .'User'

@expected makes it read-only and user . 'User' automatically fills in the name of the current user. It also links back to the collection of users.

This only works when adding new values though. If you want to have traceability when updating existing values, you should add a command or an action to achieve this.

1 Like