Quiero asignar automáticamente un usuario específico (usando su nombre de usuario) según los campos personalizados
Por lo tanto, configuré el siguiente script usando la función de publicación Scriptrunner.
The users are well assigned based on the custom field, but when I execute the transition of the flow the assigned one is not updated.
Did I do something wrong with my script?
Thank you in advance for your help
Hi @reynaldo
In what order are you adding your postfunction ?
In your workflow postfunction , you should have
1. Creates the issue originally
2. Re-index
3. Fire a Issue Created event...
This is the order:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems that your code is ok. I would add
log.warn issue.getCustomFieldValue(areaCustomField)
and at the end
log.warn issue.getAssignee() to see if it gets assigned correctly
After your workflow executes, check the logs in "No failures in the last 10 executions" to see what gets logged.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.