Calculated Date-Time Field doubt

Issue #625 resolved
Jonas Gomes created an issue

Hi Fidel,

i wanna this Calculated Date-Time Field receive of sum date-time from another custom field, but ignoring hours after 18hs (6pm) and before 9hs (9am). Exemple:

cfDateTime = 23/05/2017 17:00 newCfDateTime = {cfDateTime} + 6h

result newCfDateTime = 23/05/2017 23:00 (11pm)

but i wanna this

newCfDateTime = 24/05/2017 14:00 (2pm)

It is noted that it was added 6 hours but without adding the time after 18hs (6pm) and not before 9hs (9am)

Have a way to do this using u plugin?

Comments (4)

  1. Fidel Castro Armario repo owner

    Hi @JonasGomes,

    I'm working to support that feature, but currently it isn't. I hope it will be available in July.

  2. Fidel Castro Armario repo owner

    Hi @JonasGomes,

    I have made available 2.2.39_beta_5 which adds a very powerful support for custom schedules.

    You can define a custom schedule using Schedule Definition Grammar (SDG), and then do math-time calculations using functions timeDifference(highTime, lowTime, schedule, timezone) and addTime(base, offset, schedule, timezone).

    You can enter your custom schedule definition at Administration > Add-ons > JIRA WORKFLOW TOOLBOX > Schedules.

    Please, let me know if you need any help to implement your requirements.

  3. Fidel Castro Armario repo owner

    Resolved by just released version 2.2.39.

    Please, reopen the issue if you need help to implement your time calculations using the new feature.

  4. Log in to comment