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)}
Run as*
Choose which user* will be able to execute the post function. By default, it is set to the Current user.
Related examples
Use case | Type | Function | Use case description | Complexity |
---|---|---|---|---|
Add a sub-task's summary and key to the description of its parent | When a sub-task is created, its summary, issue key and date, and time of creation will be added to the description of the parent issue. | BEGINNER | ||
Add three days skipping weekends automatically to a Date Picker | Add three days to a Date Picker field from the current date. | BEGINNER | ||
Add watchers from another field | ||||
Assign an issue to the project lead, if the issue is unassigned on creation | When an issue is created without an assignee selected, the issue will be assigned to the project lead of the project. | BEGINNER | ||
Assign an issue to the user who last commented on it | Assign the issue to the user who last commented on the issue. | BEGINNER | ||
Assign important issues to the project lead | Automatically assign and issue to the project lead. Issues will only be re-assigned if the priority of the issue is set to Highest to make sure that only important issues are being escalated. | BEGINNER | ||
Copy field values from epic to issues under it after creation | Copy the values of the fields defined in the Update fields post-function to the issues under the epic after their creation. | BEGINNER | ||
Copy labels of a sub-task to the parent issue upon closing | When a sub-task is closed, the labels of the sub-task will be added to the Labels field of the parent issue. | BEGINNER | ||
Keep parent's priority in sync | Set the priority of the parent issue to the priority of the current issue. | BEGINNER | ||
Obtain the difference between two dates | Update a number field with the difference in days between two dates obtained from two Date Picker fields. | BEGINNER | ||
Set a date field to a future date | Set any date field of an issue to a future date. | BEGINNER | ||
Set a date field to the current date | Set a Date Time Picker field to the current date | BEGINNER | ||
Set Fix version to Affects version when resolving an issue | When an issue is resolved and the resolution set to "Done" the Affects version/s will be added to the Fix version/s field. | INTERMEDIATE | ||
Set the priority to Highest if the 'Infrastructure' component is selected | When an issue is created with the "Infrastructure" component selected, the priority will be set to "Highest". | BEGINNER |
If you still have questions, feel free to refer to our support team.