Estou precisando enviar o ultimo comentário do card {{comments.last.body}} para um outro sistema, porém preciso remover as quebras de linhas, alguém sabe uma forma de criar uma variável com o texto substituindo o \n por <br>?
Welcome to the community.
This can be done in Jira, the smart values can help.
Have you tried to use replace() to substitute a space or empty string for the newline character before the test? For example:
example: {{issue.comments.last.body.replace("\n"," ")}}
Hi,
I figured I should use the replace function, but I didn't know how to implement it.
Now it worked perfectly, thank you very much for the support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please accept my answer as a solution.
This will help other community member trying to solve the same.
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.