Feature proposal #6811
closedImplement support for action and user substitutions
Description
Currently if an action replaces the user object for substitutions you no longer have access to the user object data. Implement a way to have access to both for substitution usages. Maybe something like [user_user_id] to at least be able to access the raw data.
Updated by krileon about 7 years ago
Would be better to have a special format function like usage to cover this case so there's access to more than just the raw data. Maybe something like the below?
[cbautoactions:user]SUBSTITUTIONS_HERE[/cbautoactions:user]
Could also just use a special inline replacement as follows.
[cb:userdata field="user_id" user="[action_user]" /]
Updated by krileon about 7 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Add support for following substitutions.
[action_id]
[action_user]
action_id is the id of the auto action. action_user is the original action trigger user id. action_user is replaced before substitutions are parsed so you can use the below for example.
[cb:userdata field="username" user="[action_user]" /]
Updated by krileon almost 7 years ago
- Target version changed from 7.0.1 to 7.1.0