Forum Discussion

DonLarson's avatar
DonLarson
Qrew Commander
2 years ago
Solved

Jinja Max Value of a Field

I have a Search step that looks at all the child records for a parent.  In that Search I am collecting a single Date Time Stamp Field. Then I am evaluating the field to get the max value using ...
  • DougHenning1's avatar
    2 years ago
    I believe max returns the whole object, so you would need to grab the single attribute from that object:

    {{ a | max(attribute='child_table_date') | attr('child_table_date') }}

    Hope that helps!

    ------------------------------
    Doug Henning
    ------------------------------