Hola,
Estoy tratando de generar un resumen automáticamente con el valor de un campo.
El problema es que si cambio el valor de ese campo al crear la tarea, no actualiza el campo resumen con el nuevo valor.
He creado un comportamiento que funciona solo cuando actualizo la pantalla de creación o cuando actualizo el tema ya creado.
conducta:
importar com.atlassian.jira.component.ComponentAccessor
importar com.atlassian.jira.component.ComponentAccessor
importar com.atlassian.jira.event.type.EventDispatchOption
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser().getDisplayName()
def resumen = getFieldById("summary")
def inf = getFieldById("customfield_15900").value
summary.setFormValue("${inf}" + ":" + " " + "${usuarioactual}")
¿Cómo puedo hacer que el campo de resumen se actualice con el nuevo valor que pongo en el campo del que tomo ese valor?
Gracias
Where did you put your behavior script?
It should be against the server-side script for the custom field that should trigger an update.
But be careful, you don't want future users that edit the issue to cause the summary to be refreshed to that user.
So either make sure your script only runs on create or if you want to allow the summary to be changed during future edits of the custom field, then you'll need to use the reporter details instead of the current user.
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.