Forums

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

Script in Scriptrunner to validate date entered is at least 3 business days in the future

I can't figure this one out and it probably is easy for most of you. We want to create a script at the create issue step in the workflow that prevents an issue from being created using JSM form if that date is less than 3 business days in the future. We can figure out how to do 3 DAYS in the future but BUSINESS DAYS is giving me headaches. 

Anyone have a script they have used in the past I can steal? This is for JIra cloud. Again, this would prevent an issue from being created, would throw an error for the user if the date is less than 3 business days in the future using Scriptrunner.

 

1 comment

Charlie Misonne
Community Champion
April 25, 2025

Hi @Lynn Squire and welcome to the Atlassian Community!

It's probably better to create a question instead of an article for this.

Maybe share the part of the code which checks for the 3 days into the future, it might be easier to build something from there.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events