Hi @CallumH, welcome to the Zapier Community👋
I believe this could be accomplished by using an AI tool such as our AI by Zapier tool.
Here is a rough prompt that could be used:
“You are processing a Slack thread retrieved from the "Retrieve Thread Messages" action in Zapier. Your task is to transform the thread into a format that includes each message along with the username of the sender.
Input:
1. Thread messages, where each message includes the sender's username and the message text. Example:
[
{"username": "Alice", "text": "This is the first message."},
{"username": "Bob", "text": "This is the second message, with a comma."},
{"username": "Alice", "text": "Another message from Alice."}
]
Output:
A formatted string that lists each username and their corresponding message on a new line, preserving commas within the message text. The format should be:
[username1]: Message 1
[username2]: Message 2
Example output for the above input:
Alice: This is the first message.
Bob: This is the second message, with a comma.
Alice: Another message from Alice.
Ensure:
- Each message is clearly associated with the correct username.
- Commas within messages are preserved.
Process the provided input and return the formatted output.”
This likely will need to be adjusted according to your particular workflow, but our Prompt Builder tool should help move you forward!
Hope this helps😊
Thanks @Sebastian M That’s really helpful. If possible, we’d prefer not to use AI here due to (i) the cost; and (ii) there may be some sensitive information which we are not willing to share with a third party AI tool.
Hey @CallumH 👋
The Retrieve Thread Messages should return each reply and the user’s ID as line items. To combine them you could use a Utilities > Line Itemizer (Formatter by Zapier) action like so:

Which would group the user and their message together:

Then convert them from line items to text using another Formatter action (Utilities > Line-item to text).
However, that approach won’t give you the username of the user so instead you’d likely want to use the Looping by Zapier app to run a Find User by ID Slack action for each of the user IDs to get their username. And use a Digest to combine the usernames and replies within a Digest and then use the digest in the Jira action that creates the ticket—which would only run for the last loop iteration. You can learn more about that sort of approach here:
Hope that helps to get you pointed in the right direction. If you run into any issues on that or have further questions just let us know!