On this page

Features used to implement the example

Example: Set "Due date" to current date at issue creation if not initialized

We wanted to add a due date to new issues and managed to do this with a post-function: Field Due date will be assigned with the calculation result of the formula: {Current date and time} 

It workes fine but we recently found out that it does allways set the due date to current day, even if you enter a different one in the create issue mask. So here's the question. Is it possible to alter the function to only set the due date if none is entered?

Yes, it is possible to do it. You simply have to use post-function Set a field as a function of other fields to evaluate whether "Due date" is set or not before assigning "Current date and time" to due date. Now I show you a screenshot of how to configure the post-function Set a field as a function of other fields to implement the solution:

Alternative expression

I'm in need of changing the due date to current date +30 days. You can do it with this post-function configuration:

Other examples of that function