You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

On this page

Use case

Set any date field of an issue to a future date.


Configuration steps

Target issue*

Select current issue or parent of current issue, and upon selecting: 

  • Selected issue - An issue must be selected from your current issue list.
  • Parser expression - A valid expression must be entered, to learn more about expressions visit JWT expression editor.

Fields

Choose a date field, e.g., Date picker, Planned end date, Planned start date, Due date...etc.
In this example, we will consider due date as our date field.

After selecting due date, in the popup configuration of the field: 

Value*

Select Set field value manually (parser expression) and enter the following expression:

%{dateTimeToString( {system.currentDateTime} + 7*DAY , "YYYY-MM-DD", RUN_AS_LOCAL, RUN_AS_LANG)}

Or

%{dateTimeToString( {system.currentDateTime} + 7*DAY , "YYYY-MM-DD")}

Or

%{dateTimeToString( {system.currentDateTime} + 7*DAY , JIRA_DATE_FORMAT)}

The last two expressions are just an alias function of the dateTimeToString() where you do not have to set the last 2/3 parameters.

Run as*

Choose which user* will be able to execute the post function. By default, it is set to the Current user.



If you still have questions, feel free to refer to our support team.