Is it possible to put a validation IF a field WAS populated with a certain date?
The field are cleared down at a point - Hence the "was populated with"
Thanks
@Rob B ,
This can be done by scripted validator.
Script will be - To check the issue history for the custom field object there you can check the that field had a specific value or not.
In the script you need use getChangeItemsForField function which will give you the change history for that custom field which you need to iterate and in the for look you can compare the history values.
Accept the Answer if it helps
Hi Guys,
Sorry that doesnt really help me. Im a beginner.
Thanks
Rob
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Refer this Video which explain how you can get the history
import com.atlassian.jira.component.ComponentAccessor
def issueManager = ComponentAccessor.issueManager
def changeHistoryManager = ComponentAccessor.changeHistoryManager
def projectManager = ComponentAccessor.projectManager
def project = projectManager.getProjectByCurrentKey("MOCK")
def issues = issueManager.getIssueObjects(issueManager.getIssueIdsForProject(project.id))
issues.each { issue ->
log.warn "${changeHistoryManager.getAllChangeItems(issue)}"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rob B
Do you mean put a workflow validator based on the previous value in your customfield ?
I think you can do it you'il need to get the history of your issue
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.