🚀 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 a date based on current date

In this example a date will be set based on the value of a select list custom field and the current date.

Based on a single select with the options "monthly" and "quarterly" another custom date field "Time limit" should be set.


Case 1: Selecting "monthly"

  • "Time limit" will be set to the last day of the next month.

Case 2: Selecting "quarterly"

  • "Time limit" will be set to the last day of the quarter, e.g.
    Creating an issue on 22/Feb, "Time limit" will be updated to 31/Mar.


Note: For this example, two custom fields are needed:

  • Select list (single choice) "Frequency" with two options: monthly and quarterly
  • Date picker "Time limit"


This can be done using the Set a field as a function of other fields post function.


Text to be parsed is:

(Monthly)lastDayOfTheMonth(addMonths({00057}, 1, LOCAL), LOCAL)
[month({00057}, LOCAL) in [{JANUARY}, {FEBRUARY}, {MARCH}]]dateTime(year({00057}, LOCAL), 3, 31, 0, 0, LOCAL)
[month({00057}, LOCAL) in [{APRIL}, {MAY}, {JUNE}]]dateTime(year({00057}, LOCAL), 6, 30, 0, 0, LOCAL)
[month({00057}, LOCAL) in [{JULY}, {AUGUST}, {SEPTEMBER}]]dateTime(year({00057}, LOCAL), 9, 30, 0, 0, LOCAL)
[month({00057}, LOCAL) in [{OCTOBER}, {NOVEMBER}, {DECEMBER}]]dateTime(year({00057}, LOCAL), 12, 31, 0, 0, LOCAL)


Note that:

  • {00057} is field code for field "Current date and time"


Once configured, the transition will look like this:




Other examples of that function

Related Usage Examples