We have a process that allows a Cherwell ticket that is already in place to be paired with Jira and then becomes a linked ticket. This all works well but I need to pass any Journals already in the ticket over to Jira also.
I have the one-step in place that does all of this and I store the comments in a variable via a step through children process.
Each loop the new value of the variable looks something like this;
Created by: Journal - Note.Created By - Comment: Journal -Note.Details
Obviously the variable is called CherwellTempComment and it just appends itself to the variable until the step through is complete.
When the variable is used in the JSON it ends up just a block of text which is impossible to read when it gets to Jira.
Does anyone know how I can force a line break into this variable so when the variable is appended to itself there is an obvious new line for each new Journal entry.
Use Encoding and DecodingSee this thread where such a thing was covered: https://www.cherwell.com/community/f/apis/11896/keeping-formatting-of-a-variable-when-being-passed-over-via-api
If it's ending up as JSON, inserting \r\n where you want linebreaks should work, as that's the escaped JSON character for a linebreak/carriage return