You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Adam Saghy (Jira)" <ji...@apache.org> on 2025/08/10 18:32:00 UTC
[jira] [Resolved] (FINERACT-2333) Batch API - Support date format: from array to string
[ https://issues.apache.org/jira/browse/FINERACT-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Saghy resolved FINERACT-2333.
----------------------------------
Resolution: Fixed
> Batch API - Support date format: from array to string
> -----------------------------------------------------
>
> Key: FINERACT-2333
> URL: https://issues.apache.org/jira/browse/FINERACT-2333
> Project: Apache Fineract
> Issue Type: New Feature
> Affects Versions: 1.11.0, 1.12.1
> Reporter: Adam Saghy
> Assignee: Adam Saghy
> Priority: Major
> Fix For: 1.13.0
>
>
> As a customer i would like to be able to use local date of a previous response, in a reference request:
> * Usually local dates are returned as array: [year, month, day]
> * Incoming local dates are accepted as string which match with provided dateFormat
>
> JSONPath does not support out of box, so custom resolver is required:
> Original resolution: $.<path-to-field> → E.g.: $.timeline.actualMaturityDate
> New, custom resolver: $[resolver].<path-to-field> → E.g.: $[ARRAYDATE].timeline.actualMaturityDate
> *New resolver*
> * Accept incoming Array:
> ** 1st element: year part of date
> ** 2nd element: month part of date
> ** 3rd element: day part of date
> *Example*
> * $.timeline.actualMaturityDate → [2024,12,20]
> * $[ARRAYDATE].timeline.actualMaturityDate → (assuming dateFormat keyvalue is dd/MM/2024) → “20/12/2024”
>
> *Acceptance criteria*
> * Custom resolver is added and resolve from array date to date string based on the `dateFormat`
--
This message was sent by Atlassian Jira
(v8.20.10#820010)