Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Section


Column
width30%600px


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1



Column




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:

Image Removed

Text to be parsed is: (^%){00057}Image Added

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:

Image Removed

Text to be parsed is: (^%){00057}+30*{DAY}Image Added




Other examples of that function

Incoming Links
pageSet a field as a function of other fields
labelsexample



Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "post-function"