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

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

Restrict Date Picker

I have a START DATE and END DATE that the customer chooses. How can I assure no more than 365 days is in between those two dates.

1 answer

1 accepted

2 votes
Answer accepted

Hi Mandouh,

To add a restriction between the start and end date you can add a Validator in the workflow, then if the customer selects the start date 1/Aug/2019 the limit for end date will be 31/Jul/2020.
Please, go to the Project settings > Workflows > Select to edit the desired workflow > Select the diagram mode and select the "Create" transition.

Screenshot 2019-08-01_15-28-39-248.png

On the next page, click on "Add validator" and choose the Date window validator > Add.

Select the fields to be validated the same as below:

Screenshot 2019-08-01_15-30-31-769.png
After that, publish the workflow and it will start working for the future tickets.

The only problem for that is the message that will appear in the portal that will not show specifically what is the error but it will highlight the end date field, so my suggestion is that you add a message on the introduction of the project (Project settings > Portal settings > Introduction text) informing about the start and end date.

Screenshot 2019-08-01_15-24-44-622.png

Hope this helps!

Regards,
Angélica

1.pngHi,according to your steps, I cannot find the Date window validator in the validator. My jira version is 7.6.1. I want to realize that the optional time range of the date picker is the current time and the current time + 1 month. May I ask this validator? Can it be achieved?

Hello @jingjing,

Thank you for reaching out to Community!

The steps I shared are valid only for Jira Cloud. Jira Server doesn’t have the same validators and post functions and most of them are based on add-ons.

I found only one thread here in the community with a similar request that may help you:

Kind regards,
Angélica

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