my jira version 4.4.1.
Groovy Runner plugin version is 2.0.7
1 DueDate (system field) is on Assign Screen
2 i want to make DueDate field required when assign an issue. i'v known using groovy runner 's Fields Required function can easily implement it . but i want to try it using groovy
3 i try below code
ComponentManager componentManager = ComponentManager.getInstance()
// DueDate is set or not
IssueManager issueManager=componentManager.getIssueManager()
MutableIssue missue=issueManager.getIssueObject(issue.getId())
missue.getDueDate() != null
missue.getDueDate() seams get the value stored in database, not get the value displayed on Assign Screen.
for example,
issue A 's Due Date 's value is 5/Mar/13 , Open Assign screen,remove the Due Date value,click Assign,no error message display!!
issue B has not set Due Date value,Open Assign screen,set Due Date value to 6/Mar/13,click Assign,there error message display,and block assgin action !!
anyone can help ?