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

Date validations

Marco Scicluna
Contributor
January 30, 2025

 

I am using JIRA Cloud. I have a date field in a Create screen and wish to introduce a validation to restrict users from entering dates which fall on a Saturday and Sunday. 

How can I implement it?

Thanks.

2 answers

2 accepted

1 vote
Answer accepted
Atlass Monster
Banned
January 30, 2025

@Marco Scicluna  Polo!

 

I think it will kinda difficult to pull this off. The workflow validator doesn't accept complex checks. You may want to try with some add-ons.

Another solution is to set up an Jira Automation that validates the date on issue created trigger, and removes or edit it to be within " businessDays ". 

 

 

Marco Scicluna
Contributor
January 30, 2025

Thank you for your prompt reply.

0 votes
Answer accepted
Maciej Dudziak _Forgappify_
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.
January 30, 2025

Hi @Marco Scicluna

If you require a validator, consider using a Jira expression-based validator. There are several options available on the marketplace, or maybe you already have one.

I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira app.

The expression you could use is as follows:

![6,7].includes(new CalendarDate(issue.customfield_12345).getDay())

You need to change the ID of the custom field to a valid one. In the editor, after 'issue.', start typing the name of the field, and you will get suggestions with the correct value.

I hope it will help

Cheers

 

Marco Scicluna
Contributor
January 30, 2025

Thank you. I will consider investing into a new add-in.

Like • Maciej Dudziak likes this
Marco Scicluna
Contributor
January 31, 2025

I installed WBB and inserted your code. It worked brilliantly. Thank you ver much.

Like • Maciej Dudziak _Forgappify_ likes this
Maciej Dudziak _Forgappify_
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.
January 31, 2025

Awesome!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events