Hello
I have a behaviour which should set the reporter of a sub-task to the assignee of the parent task.
Here's an extract of my script.
FormField parent = getFieldById("parentIssueId")
Long parentIssueId = parent.getFormValue() as Long
def parentIssue = issueManager.getIssueObject(parentIssueId)
def parentIssueAssignee = parentIssue.assigneeId
def subTaskReporter = getFieldById(REPORTER)
subTaskReporter.setFormValue(parentIssueAssignee)
subTaskReporter.setReadOnly(true)However, the reporter remains the same as the current user.

When I hardcode the reporter to for example "svc_jirabot", it works.
subTaskReporter.setFormValue("svc_jirabot")
The assignee ID gets retrieved successfully so I don't know what's the issue here. Here's an extract of my debug log
[c.o.j.groovy.user.FieldBehaviours] --------------------This is to test Behaviours Logging----------------
[c.o.j.groovy.user.FieldBehaviours] svc_jirabot
Any Ideas?
BR
Marius