Hi,
I want to create a field check in a script runner behaviour.
When the field “duedate” is changed i want to validate:
1) if the new value is not in future > show error in GUI
2) if the new date is in future > okay
3) If the field is not changed, nothing should happen.
As far as i know i cannot use “issue” in behaviours, instead of it i must use "underlyingIssue".
To compare if a field was changed i use usualy the simple line:
issue.duedate != originalIssue.duedate
But i was not able to find something similar like "oiginalIsse" or "originalValue" for underlyingIssue. Is there anything similar i can use in behaviour?
Best Regards
Manuel