It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

hide the future dates

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you