Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot use max() with list of Objects

Evan Yeung September 5, 2023

Hi,

I'm getting a list of how many approvals are required for a list of apps using the Lookup Object command and logging the smart value with {{lookupObjects.Approvals Required}}

0, 2, 1

If I check the size with {{lookupObjects.Approvals Required.size}} I get "3" returned. But if I do {{lookupObjects.Approvals Required.max}} nothing is returned, I would expect "2" to be returned here.

I also tried {{lookupObjects.Approvals Required.asNumber.max}} in case it was being treated as text.

Is there anything specific with the list and Objects that's preventing me from getting the max?

Thanks

1 answer

Evan Yeung September 6, 2023

Thanks Kesab. I was not able to find anything in the link about using the `max()` function, however the link did point me in the direction to solve something else I had (using the `flatten()` command).

I want to get the number of approvers to transition the issue to different statuses, each having a hardcoded number of approvers, since the number of approvers can't be set by variable.

Like Kesab Nandi likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events