Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a desired date?

Benjamin Buchwald July 23, 2025

Hello everyone,

is it possible to configure the date field so that it displays the earliest possible date plus 5 days.

An example: A ticket is submitted via the portal, the desired date would be today + 5 days. How would you implement this? Preferably without Scriptrunner.

Regards,

Benny

2 answers

0 votes
Liz Tanner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2025

Hey @Benjamin Buchwald, I tested this solution for you w/o Scriptrunner and on the free-tier JSM product plan. It is an automation, and I ran it as a product admin to make sure you had access to automations too. Now, for the procedure:

1. Go to JSM, then the left side panel. and find "Projects." Click on "Projects" and select your JSM project that you want to add this automation to. 

2. Click the three dots to the right of the JSM project you're adding the automation to, and select "Project Settings."

3. In the left side panel, selection "Automation." 

4. In the top right, click on "Create rule" and select "Create from scratch."

5a. 1st Automation: Use the trigger, "Work Item Created." Click next at the bottom of this screen.

5b. 2nd Automation: Below the trigger, click "+Add component". Select "Then..." and then "Edit work item" as the action. In "Choose fields to set", check the box towards the bottom for "Start Date". When the Start date field details appears below the "Choose fields to set" dropdown, open the Smart Values screen by selecting the {  } on the right.

5c. 3rd Part: Select "Advanced formatting" and then select "Date and time." The Smart Value you want is {{datetime .plusDays(#number)}}; it is a bit hard to find so if you cannot locate it, put this in the Start date field: {{now().plusDays(5)}}

6. Click next on the bottom of that screen.

7. Turn on the rule last.


I ran this and got "Created" column with July 23 and then "Time to resolution" was July 28. I think this will work for you, and if you need some screenshots, I will edit them in; I wanted to rush over your solution first. Hope this works for you!

 

0 votes
Deivid Araujo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2025

Hi Benny,

You can create a new automation rule with the "Issue Created" trigger, and then add an "Edit Issue" action. In the field where you want to set the date, use the smart value {{now.plusDays(5).jiraDate}}. That will automatically set the date to 5 days from now.

If your field includes time as well (i.e., it's a date-time field), use {{now.plusDays(5).jiraDateTime}} instead.

 

Liz Tanner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2025

Hey @Deivid Araujo, are you still showing the "Issue" and "Issue Type" verbiage in your screens? 

Deivid Araujo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2025

Not in the automation steps, but yes in a few other places.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events