Forums

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

validate field in the customer portal

Guilherme
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 22, 2023

Hi everyone, I have the following scenario: I have a project in service management for users to request calendar blocks for vacations, remote work, and other reasons. The policy is to request these blocks 15 days before the intended date. I want to know if it's possible to validate the period directly in the portal when choosing the date. The selected day must be at least 15 days from the date of the request. I want to implement validation in the portal to prevent users from creating a request if it's not made 15 days in advance. If the blocking is necessary, the supervisor will handle the request directly through the service management create option. If its not possible by standard, can i develop this?

1 answer

0 votes
Eugenio Onofre
Community Champion
December 27, 2023

Hi @Guilherme

Welcome to the Atlassian Community.

Unfortunately there is no default way you could restrict the date intervals on a date picker field in the portal.

One possible workaround is to add a validator to your workflow on the "Create Ticket" transition that would validade if the selected date is within the accepted dates. However, the message that will show in the portal is not detailed (screenshot below).

Another possible solution would be to allow the user to create the ticket anyway and, once created, an Automation runs to validate the value of the field and adds a comment to the request stating that the selected date is not valid and requesting the user to add a comment with a new date. The downside of it would be people having to check the dates manually and updating the ticket accordingly.

Lastly, a third option would be to have this same automation mentioned above cancelling the ticket and requesting the user to create a new one and, on the comment, inform the valid range of dates.

Please do not forget to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,
Eugenio

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events