Skip to main content
Question

Getting Jira comments - issue with line break

  • March 7, 2025
  • 1 reply
  • 3 views

Hi,
I wanted to grab Jira Service Management  last comment text. 

I have already created Zap that:

  1. Takes the Jira Issue comments list  - im using Comments Body Content (all comments separated by commas)
  2. Loops the list - Im looping the list with a comma separation
  3. Filter the last looped comment - Im using Only continue if: Loop Iteration is Last, Boolean is true)

AND...

it works a-ok when the Jira comment do not have break lines (made with enter). When there is break point in jira comment I receive only the part of text after the brak line.
So for example when creating Jira comment like this example:

“This is my comment first line.
This is my coment second line. And this is rest”

I do not receive the ““This is my comment first line.” part as a outcome. only the second line is there.

Any ideas what can be the issue and how to get the full comment? :)

Did this topic help you find an answer to your question?

1 reply

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7597 replies
  • March 10, 2025

Hi ​@ChrisT, welcome to the Community! 🎉

Perhaps you could try using a Formatter (Text > Replace) action to remove the newline characters [:newline:] from the comment before passing them to the loop? You can learn more about how to use that type of Formatter action here: Find and replace values in your Zaps

Hope that helps. If you run into any issues on that or have any further questions at all just let me know! 🙂


Reply