Validation of Post-Funtion "Update parameters of the Mathematical or date-time expression calculator Function"

Issue #251 resolved
Tobias Bruckmann created an issue

Dear JIRA Workflow Toolbox team,

I want to set the due date of an issue by a post function based a number value und current time/date. Before the post function the due date field is null. I use the following function which works perfectly (00057=current date; 11507=duration as number field): addDaysSkippingWeekends({00057},{11507},LOCAL)

In some cases the duration field could be empty so I want to use a Boolean expression. My problem is, that when the duration field is empty nothing! should happen. So I have no than-clause. The due date should still be null. when using following formula I get a parsing error: {11507} != null ? addDaysSkippingWeekends({00057},{11507},LOCAL) : null

Any idea how to achieve nothing should happen, when if clause is false?

Kind regards Tobias Bruckmann

Comments (4)

  1. Fidel Castro Armario repo owner

    Tobias, update your version of the plugin to the most recent one (2.2.7) and you will get rid of the parsing error.

  2. Fidel Castro Armario repo owner

    Hi @TobiasBruckmann,

    Since version 2.2.39, JIRA Workflow Toolbox supports Custom Schedules, and you can do all you are doing now using addTimeSkippingWeekends () and subtractDatesSkippingWeekends () functions, and much much more.

    I recommend you to take a look at it. You will be able to do amazing things using it.

  3. Log in to comment