Forums

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

Write a Jira Expression for a ScriptRunner Workflow Validator in Jira Cloud.

Soham Tare
August 3, 2026

Field Details: Field Name: Start date, Field : Its a default Jira Field, Field Type: Date Picker (Date only, no time)

Validation Logic: The field must be Mandatory (cannot be null). The date selected must be Today or in the PastFuture dates must be restricted. The comparison must account for Indian Standard Time (IST), which is UTC +5:30.

1 answer

1 accepted

1 vote
Answer accepted
Gor Greyan
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 Champions.
August 3, 2026

Hi @Soham Tare

Welcome to the Atlassian Community!

The validator should be written as a Jira Expression, not as a Groovy script.

You can try the following script.

issue.customfield_XXXXX != null &&

new CalendarDate(issue.customfield_XXXXX) <=

new Date()

.plusHours(5)

.plusMinutes(30)

.toCalendarDateUTC()

Replace customfield_XXXXX with the actual ID of your Start date field.

Soham Tare
August 3, 2026

Thanks for the solution, @Gor Greyan 

I tested the validator and it works as expected. The mandatory field check and future date restriction are functioning correctly for the Date Picker field.

Appreciate your help!

Like Gor Greyan likes this
Gor Greyan
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 Champions.
August 3, 2026

@Soham Tare

Happy to help, dear!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events