Hi Guys,
Wondering if anyone out there can help me modify this script to create a validator that will block the transition of the parent item if a Sub-task is not in a specific status.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.changehistory.ChangeHistory
import com.atlassian.jira.issue.history.ChangeItemBean
for(ChangeHistory changeHistory: ComponentAccessor.getChangeHistoryManager().getChangeHistories(issue)) {
for(ChangeItemBean changeItemBean: changeHistory.getChangeItemBeans()) {
if (changeItemBean.getField().equals("status")) {
if(changeItemBean.getFromString().equals("Client Approved"))
return true
}
}
}
return false Thanks as always.
Dave