Forums

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

hide the future dates

Abhishree Nagesh
Contributor
December 5, 2019

Hi,

 

How to hide the future date .

I.e when we click on the custom field of type date picker it has to show only past and present date. but not future date.

please help me the work around for this.

any add on suggession with work around can be accepted.

 

Thanks,

Abhishree Nagesh.

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2019

Hello @Abhishree Nagesh

Thank you for reaching out.

Per your description, it seems that you have a date picker custom field that you would like to restrict to only be added with past dates by the users. Is that correct?

You can use the Date Compare Validator provided by the JSU Automation Suite for Jira Workflows app to do it, however, it will only work for issue transitions, so you would need to remove the field from your edit screen. These would be the steps:

1 - Navigate to your project > Project Settings > Screens and remove the date picker from the edit screens of your project

2 - Navigate to Project Settings > workflows > Edit > Add screens in your workflow transitions containing the Date Picker field

3 - In the transitions where the Date Picker is added (Including the create transition), add the Date Compare Validator, configuring it like displayed below:

Screen Shot 2019-12-06 at 18.52.55.png 

4 - Publish your workflow draft

Doing the steps above, the user will only be able to change the field when transitioning the issue and will not be able to set future dates on that.

Let us know if this option works for you.

Suggest an answer

Log in or Sign up to answer