Forums

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

Let users pick specific date our of date field options

Vishal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2022

Hi Guys,

I have a date field in on of our JSM request type, I would like to restrict users to pick out of only available dates & not all, for example out in below screenshot, only highlighted dates should be available for selection.

Select Dates.JPG

 

Is this something which is possible ? If yes, how so ?

Thanks in advance!

2 answers

2 votes
Joseph Chung Yin
Community Champion
February 11, 2022

@Vishal -

I agreed with Radek's statement "There is no such customization available out of the box".  The calendar widget is out of the box.

I would also recommend that you look for possible paid add-ons from Marketplace.  Lastly, here is a link found in the community you can take a look at - Don't know if this one will give you some additional ideas..

https://community.atlassian.com/t5/Jira-Service-Management/Disable-certain-dates-in-Date-field-on-Customer-Portal/qaq-p/1441196

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

1 vote
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2022

There is no such customization available out of box. The whole date/datetime picker is all built-in, so there are technically only 2 options:

A) Creating your own custom field type (meaning a plugin has to be made/used to introduce such a field type); this field would implement your algorithm to which dates can be selected

B) Injecting javascript to customize the way the date picker works (if this date picker is on a customer form in the portal, there are additional problems to get any custom javascript in there)

 

Neither of the options would be exactly trivial. I'm happy to be proven wrong and not be the bearer of bad news - but I don't see any different option myself.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events