Here's part of the code for an automation I'm working on that asks the user to verify the data before making a change within Jira Assets:
Asset Tag: {{#if(not(lookupObjects.Asset Tag.isEmpty))}}*{{lookupObjects.Asset Tag}}*{{/}}{{#if(lookupObjects.Asset Tag.isEmpty)}}"_none_"{{/}} > {{#if(not(customfield_11607.isEmpty))}}*{{customfield_11607}}*{{/}}{{#if(customfield_11607.isEmpty)}}"_none_"{{/}}
Device Name: {{#if(not(lookupObjects.Device Name.isEmpty))}}*{{lookupObjects.Device Name}}*{{/}}{{#if(lookupObjects.Device Name.isEmpty)}}"_none_"{{/}} > {{#if(not(customfield_10393.isEmpty))}}*{{customfield_10393}}*{{/}}{{#if(customfield_10393.isEmpty)}}"_none_"{{/}}
The problem is that Asset Tag prints out the following within the comment:
"none" > **
What I want to print out is:
"none" > "none"
Any help would be greatly appreciated. I've been staring at this for hours and just cannot figure out what I'm doing wrong. I don't know why it prints the first "none" but not the second.
I've tried using "issue" in the smart value as well, like this: {{issue.customfield_11607}}, but it didn't change the output.
I also found this in the smart value documentation:
{{if(smartValue, "value if true", "value if false")}}
Asset Tag: {{#if(lookupObjects.Asset Tag.isNotEmpty, "lookupObjects.Asset Tag.value", "_none_")}}{{/}} > {{#if(issue.customfield_11607.isNotEmpty, "customfield_11607.value", "_none_")}}{{/}}