Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to make sure a user does not enter a past date in a date field?

Shiv Sharma
Contributor
April 11, 2024

We have a date field (Implementation Date), which should always be a future date. How  to make sure a user does not enter a past date in this date field? Ideally we'd want to display an error message if user enters a date earlier than {{now}}.

In Automation Rule, I can easily specify an IF condition:

{{issue.ImplementationDate}} is less than {{now}}

However, I do not see a suitable action in the list of possible actions.

Any help would be appreciated.

 

Thanks,

Shiv.

 

1 answer

1 accepted

0 votes
Answer accepted
Bharat Kalia
Contributor
April 11, 2024

Hello @Shiv Sharma - Have have you checked on the KB article - https://confluence.atlassian.com/jirakb/how-to-prevent-users-from-selecting-previous-or-past-date-in-date-type-custom-field-1108678878.html. If the custom field is being used in the Jira software, you can add the validator as per the above KB article. 

 

I think that will make sure, the past date has not been selected. If you don't want to use the validator the best would to make a comment on the ticket with the conditional check on the date and then tagging the user who made that change with an error message. 

 

Please let me know if this helps

Thanks,

-Bharat 

Shiv Sharma
Contributor
April 11, 2024

Hi Bharat,

This helped. Thank you so much!

 

Shiv.

 

Like Bharat Kalia likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events