Forums

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

How to compare dates if createddate is specific day (groovy)

Lars Schirmer
April 30, 2021

Hello,

I' I'm looking for a script to validate dates in my create transition. The usecase is:

if today is friday then the target date must be at least the next tuesday.

any ideas?

thanks in advance :)

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Ilya Turov
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.
December 5, 2019

Hello,

because when you add a behaviour, it contains these lines:

getFieldById("project-field").setReadOnly(true)
getFieldById("issuetype-field").setReadOnly(true)

which are responsible for setting those two fields as read only

TAGS
AUG Leaders

Atlassian Community Events