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

I want to put restriction in date time picker.

Hello,

 

I want to put restriction on date time custom field in Service Desk porta for users. Like users can't put previous date and only can put upcoming date. Anyone knows how to do this ?

 

1 answer

1 vote
Pramodh Community Leader Feb 01, 2021

Hi @Soumya Subudhi 

You can do this via a validator.

To achieve this, remove the date time picker in all the screens and place it in the transition, and during the transition, you can add the validator to check for the upcoming date entered as you would check in JQL. 

FYI: You can place the field in the view screen, but that would enable the users to edit the field if they have edit issue permission. You can disable Inline editing for this.

This is the recommended way in native Jira.

Thanks,
Pramodh

Okay let me check.

Pramodh Community Leader Feb 02, 2021

Sure. Please let me know if you have any query regarding the same.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Jira Service Management

Security Advisory for Jira Service Management

On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link.  We've seen a number of questions already asking for...

227 views 1 2
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