Carrot reference
Functions
personFieldChanges()
return a sequence of changes for the current person, for the given field syntax single field personfieldchanges(fieldcode, fromdate, untildate) multiple fields personfieldchanges(\['fieldcode1', 'fieldcode2'], fromdate, untildate) parameters parameter type description field string docid\ ujw2aqaktel5uuklup73s the slug or id of a field or an array of multiple fields from timestamp docid\ j1ufztc3 yprdi3ucin3u starting point of the date range to traverse (inclusive) until timestamp docid\ j1ufztc3 yprdi3ucin3u ending point of the date range to traverse (exclusive) return sequence docid\ jg4itlqwafzlparttfo67 < job changes docid\ cipz7jxm4wxxpxmdx uwb > parameter type description change fieldcode string docid\ ujw2aqaktel5uuklup73s the value of the field that was updated by the change change date date docid\ xtaqdzvlbtakjxrnpfwe9 returns the data the that the change occured change type string docid\ ujw2aqaktel5uuklup73s will return one of create update or delete examples personfieldchanges(address, ' 5y') count() returns how many times the address field has changed in the last 5 years for a specific person would return 3 if the person had 3 changes to their address field in the time period personfieldchanges(address, '2024 01 01', '2025 01 01') returns a sequence of changes to the address field between 1/1/2024 and 1/1/2025 for a specific person personfieldchanges(address) first update title returns the original value of the address field that was set for a specific person personfieldchanges(\[nda,piaa,employmentcontract], '2020 01 01', '2025 01 01') returns a sequence of all changes to the nda, piaa, employmentcontract fields for a specific person personfieldchanges(address state) map{it update address state} example return \["tx", "co"] returns an array of all of the titles across all changes for a specific person personfieldchanges(address state) map{date} example return \[2020 01 01, 2023 01 02] returns an array of all of the dates of that the changes occured on for a specific person cqlt example template this would return a table with the dates and states that the person lived in function {% for change in jobfieldchanges('address state') %} \<tr> \<td>{{change date}}\</td> \<td>{{change address state}}\</td> \</tr> {% endfor %}