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
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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Deivid Araujo, are you still showing the "Issue" and "Issue Type" verbiage in your screens?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not in the automation steps, but yes in a few other places.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.