Hi there,
I am using simple issueInputParameters to define my new ticket parameters as follow:
def issueInputParameters = new IssueInputParametersImpl()
issueInputParameters
.setProjectId(parentIssue.projectId)
.setIssueTypeId(subtaskIssueType.id).
.setReporterId(asUser.username)
.setAssigneeId(userSelected.getUsername())
.setPriorityId(parentIssue.getPriority().getId())
Then by using validSubTaskCreate to verify the parameters before creating a subtask issue:
def createValidationResult = ComponentAccessor.issueService.validateSubTaskCreate(asUser, parentIssue.id, issueInputParameters)
if (!createValidationResult.valid) {
log.error createValidationResult.errorCollection
return
}
There is no warning or error return from creating the validation result, but it seems like instead of having the ticket assigned to "userSelected.getUsername()" the subtask ticket always assigned to the default assignee for the project.
Any idea why will this happen?
Thanks!
Sammy
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.