Skip to main content

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? :)

Hi ​@ChrisT, welcome to the Community! 🎉

Perhaps you could try using a Formatter (Text > Replace) action to remove the newline characters s: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! 🙂


​Hey ​@ChrisT, just checking in! 👋 Did the Formatter action I suggest work as hoped?

Want to make sure you’re all set, so let us know how things are going. Happy to help if you’re still stuck at all!