Good afternoon, currently, I have a ScriptRunner script in Jira Cloud that, every time an issue is created, changes the reporter. However, after making the change, the reporter remains anonymous. I have tried, but I cannot get the specified user to be reflected.
import org.slf4j.LoggerFactory
def logger = LoggerFactory.getLogger(this.class)
def updateResponse = put("/rest/api/2/issue/${issue.key}")
.header("Content-Type", "application/json")
.body([
fields: [
reporter: [
name: "ID-User"
]
]
])
.asString()
assert updateResponse.status == 204
logger.info("El ticket ${issue.key}. Se le actualizo el informador")

Is there any way to use a script to change the reporter and have the specified user appear instead of remaining anonymous?