Some Mathematical help

Issue #443 resolved
Radley Neethling created an issue

Hope you can help. We have purchased the JIRA Workflow Toolbox and I am looking to do the following: 1. Create an issue in JIRA 2. Then add a priority to the issue e.g Priority 1 to be resolved between 0-4 hours 3. Then calculate the due date and time for the issue based on a working day *calendar 4. If Priority is added on 14/11/2016 at 2pm then the due date and time must be set to 15/11/2016 10am likewise 5. If Priority is added on 18/11/2016 at 2pm then the due date and time must be set to 21/11/2016 10am

I know that I can use addDaysSkippingWeekends but I also need to skip hours 4pm to 8am in this example

*Calendar working Monday to Friday from 8am to 4pm

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi Radley,

    Sorry, but currently the plugin doesn't support to set a work time period within a day. I'm studying the possibility of doing it, but I can't yet give a date of availability.

    On the other hand, field Due date doesn't have time part, but only date part. If you need the time part you will have to use a Date Time Picker custom field and use it as replacement of native Due date field.

    Please, let me know If I can help you with the configuration of Create issues and subtask post-function.

  2. Fidel Castro Armario repo owner

    Hi @rneethling,

    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
    • edited description
    • changed status to resolved

    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