Forums

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

Jira automation - updating due date based on user input minus 5 days

Eric Browning
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2025

Hello, 

I have a JIRA automation I am trying to set up based on a manual trigger.  It prompts the user to input a title and date.  I would like to automatically create a jira story with that title and update the due date to be 5 days BEFORE the inputted date.

When I set the Due Date to be {{userInputs.dateuserselects.minusDays(7)}} I get an error below

The duedate must be of the format "yyyy-MM-dd" (duedate)

I have confirmed the input matchs that format.  I am wondering if I am missing anything or of this is just a limitation of the tool

2 answers

3 votes
Bill Sheboy
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 29, 2025

Hi @Eric Browning -- Welcome to the Atlassian Community!

At this time, there is no date (or date / time) picker option for the Manual Trigger's user inputs.  Here is the suggestion to add that feature:

https://jira.atlassian.com/browse/AUTO-744

 

Until that is implemented, please add the toDate function to convert your text entry to a date before the minusDays() function:

{{userInputs.dateuserselects.toDate.minusDays(7).jiraDate}}

 

Kind regards,
Bill

0 votes
Trudy Claspill
Community Champion
July 29, 2025

Hello @Eric Browning 

Welcome to the Atlassian community.

Can you provide screen images showing your entire automation rule, the details of the trigger showing the inputs you have created, and the details of the step where you are trying to set the duedate field?

Sometimes errors likt this are due to context, or improperly named or formatted Smart Values. Have the information requested above will help us diagnose the problem.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events