🚀 JWT 3.0 is out 🚀 

The app was completely overhauled, and so was the documentation: Jira Workflow Toolbox (Server/Data Center) Home

The page you are viewing is still valid for all app versions prior to 3.0.

On this page

Features used to implement the example

Example: Set "Due date" with certain time offset from current date

I would like to update the Due date with Current date+2 while creating an issue. I have added the following post function through Jira Workflow Toolbox,

  • Option selected: Copy a parsed text to a field
  • Target Field : due date
  • Text to be parsed and then copied to target field: {Current date and time}+2*{DAY}

But it is not updating anything on the Due Date field. Please advise on the syntax to be used.

To do mathematical or time calculations like the one you are trying to do, you should use post-function Mathematical and date-time expression calculator.

If you use the formula {00057}+2*{DAY}, you will be adding to natural days to current date and time. Next version of the plugin (2.0.19) will provide function addDaysSkippingWeekends(t, n, time_zone). With this function you will be able to add "working days", i.e., you will be able to add days skipping the weekends.

Once configured, the transition looks like this: