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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Disable certain dates in Date field on Customer Portal

I have a calendar field called Start Date in request form on JSD customer portal.  The start date is allowed at least 5 days away in the future.  I am in Jira Cloud.  Is it possible to configure a date field to disable all the days in the past, current day and 5 days in the future?

Thanks!!

1 answer

0 votes

Hello Bin,

Thank you for reaching out to Atlassian Community!

When using a Date custom field, the only way to restrict the date range is by using two Date custom fields, so it's possible to add a validator to compare both dates.

In this case, unfortunately, it won't be possible to prevent them to select today's date or tomorrow and so on, but it will prevent to select the start date 6 days or more in the future. So, creating the ticket today (July 27), they will be able to select the start date from July 27 to August 1st. 

This option is only available for Classic projects. Next-gen doesn't have the option to add a validator, so if you are using a Classic, please use the steps below:

Add two date fields on the request form. One must be the Start date and the other one Today (or another name, but "Today" in my opinion, will be more clear for the customer to select the date they are creating the issue).

Example:

Screen Shot 2020-07-27 at 11.19.47.png

Once you add both fields on the desired request type, go to Project settings > Workflows > Select to edit the desired workflow > Select the diagram mode and select the "Create issue" transition.

Screen Shot 2020-07-27 at 11.22.19.png

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

The date to validate must be set as "Start date", Reference date "Today" and Time span in days "5".

Screen Shot 2020-07-27 at 11.24.50.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 that.

Please, give it a try and let us know how it goes.

Regards,
Angélica

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

157 views 0 4
Read article

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