Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Agregar texto a "Text Field"

Will Ballestero October 27, 2023

Hola Comunidad, una consulta, tengo un custom field 10051 (Text Field (multi-line)) en el que quiero escribir un texto cada vez que un evento sucede, lo que pasa es que quiero agregar un salto de línea entre cada texto, quiero que en el siguiente evento se conserve el contenido del Text Field 10051 y luego en otra línea se registre el siguiente texto, mi fórmula es esta:

{{issue.customfield_10051}} Se entregaron {{issue.customfield_10049}} unidades al operario {{issue.customfield_10043.value}} {{"\n"}}

La fórmula anterior coloca los eventos en línea pero no hace saltos de línea y es difícil de leer.

 

Muchas gracias.

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2023

Hi @Will Ballestero 

Where are you trying to do this?

For example, is this in an automation rule?  If so, please post an image of your complete automation rule, an image of your edit issue action, and of the audit log details showing the rule execution.  Those will provide context for the community to offer suggestions.

Until we see those...

Two ways I know to do what you ask are:

Kind regards,
Bill

Will Ballestero October 27, 2023

Hi Bill, thank you for answering, this is a screenshot of my automation rule, shortly wha i need is "to join" the content of the text field with a new one keeping the old one with a line break.

Screen Shot 2023-10-27 at 13.15.20.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2023

Have you tried to enter the lines with line breaks between them?  This would be an example of this technique for the description field:

{{issue.description}}

Here is some new text added after the current description.

 

I also notice there are multiple edit actions of the issue in the rule.  When you want to do that, either perform all of the edits in one action, or place a Re-fetch Issue action after the edit.  Otherwise the second update could overwrite the earlier ones.

Will Ballestero October 27, 2023

It works!, thank you.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer