I have a workflow transition that looks up the last person in a praticular group (in this case the developer) that worked on an issue. It then should assign this to the developer as part of the workflow transition.
However, while it looks like the update takes, it isn't reflected in the actual workflow status.
I've tried both this:
def issueService = ComponentAccessor.issueService;
def issueParams = new IssueInputParametersImpl()
issueParams.assigneeId = lastDeveloper;
def updateResult = issueService.validateUpdate(user, issue.id, issueParams)
log.debug updateResult.errorCollection
if(!updateResult.errorCollection.hasAnyErrors()) {
issueService.update(user, updateResult)
}And using the assign version:
def issueService = ComponentAccessor.issueService;
def issueParams = new IssueInputParametersImpl()
issueParams.assigneeId = lastDeveloper;
def assignResult = issueService.validateAssign(user, issue.id, lastDeveloper)
log.debug assignResult.errorCollection
if(!assignResult.errorCollection.hasAnyErrors()) {
issueService.assign(user, assignResult)
}
The history shows the change but the bug doesn't actually reflect it.