I have a Notes attribute on an object. It is presumed that this field already contains text.
Via automation I'm using a For AQL branching node to select the object from Assets
Then for that object I'm using the Edit Object node to edit the Notes attribute.
I have it working to add the value of a custom field and the previous Notes value.
{{issue.customfield_99999}} {{object.Notes}}
But no matter what I do, I cannot create a line break between the two to create a visual separation between the two.
For Edit Issue, you have a multi-line component which allows you to insert the line break manually in the Edit Issue node.
For Edit Object, it's rendered as a text component, not a multi-line component.
{{issue.customfield_99999}} /r/n {{object.Notes}} renders the /r/n literally
{{issue.customfield_99999}} <br> {{object.Notes}} renders as a space.
Community moderators have prevented the ability to post new answers.
For more context, please show images of your complete rule, the Edit Object action, and the audit log details showing the rule execution.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Josh.
Perhaps try using \n instead, or concatenating on the newline:
{{issue.customfield_99999.concat("\n")}} {{object.Notes}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The .concat("\n") works. The only trick is that you have to end the line with a smartvalue in order to apply the workaround.
---
[CODE]
{{now.mediumDateTime}} by {{initiator.displayName.concat("\n")}}Wireless Number was CHANGED from {{object.Wireless Number}} to {{issue.customfield_14058.concat("\n\n")}}{{object.Notes}}
[RESULT]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I came across this great answer and wanted to add a note. If the smart value returns an empty string, then the concat won't work. For example, if I have
{{issue.field.concat("\n")}}
and "field" is empty, the "\n" doesn't get added.
The workaround that I found (there may be others) is to create a variable that is a space and use that to concat the "\n"
You can then use {{SPACE.concat("\n")}} as a foolproof way to add the new line character.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.