We have a requirement to create a custom field as date but restricted to past or Current date, not future to be populated. Don't want it to be on workflow , we have Automation and scriptrunner
Can anyone help how this can be done?
Hi Sanjivani,
How will this field be populated? By automation/script? Or directly by a user?
If by automation/script, then you should be able to remove the field from the Edit screen but leave it on the view screen and have the automation rule or ScriptRunner script populate it.
If by user, then you can see if the ScriptRunner Behaviours app will meet your need. Otherwise, it would need to be with a Validator on the workflow. Which I am curious why you are against that option?
Hi ,
This field will be populated by User directly i tried doing automation only on 1 thing is failing that if user populates future date it keeps making it null in the Edit condition i have put {{fieldChange.fromString.format("yyyy/MM/dd")}} and if in Edit condition i put {{fieldChange.fromString}} it gives me error (The Date must be of the format "yyyy-MM-dd" (customfield_10969))
This is when user edits future value and I need to bring it back to its old value (which can be past date or todays date or null)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.