I am trying to use {{issue.affectedServices.name}} in automation that sends an email but it shows up blank in email.
Automation email:
"
<strong>New Incident: {{issue.summary}} reported by {{issue.reporter.displayName}}</strong>
Date and Time: {{issue.Time of Occurrence}}
Duration: {{issue.Duration}} minutes
Services Impacted: {{issue.affectedServices.name}}
Impact: {{issue.Impact}} - {{issue.Impact Description}}
Summary: {{issue.description}}
Resolution Details: {{issue.Resolution Details}}
Timeline: {{issue.Timeline}}
Investigation: {{issue.Investigation}}
Next Steps: {{issue.Next Steps}}
"
Email recieved:
"
Duration: 119.0 minutes
Services Impacted:
Impact:
"
Because services are now stored in Insight you have to use the lookup object in order to get the name, something like this:
I know this is really old, but just in case someone else comes across this I had the same problem and simply changing it from:
{{issue.affectedServices.name}}
to
{{issue.affected Services.name}}
(adding a space)
Was enough to fix it for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe I spoke to soon
If there is more than one affected service it doesn't work, the automation seems to not fire at all
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.
It is only available if you are on the Premium plan, that will enable Insight. But you should still be able to get the service on the standard plan according to the documentation, maybe try and see if this works:
{{#issue.affectedServices}}
* Service: {{name}}
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mikael Sandberg that still shows up blank in the email.
I even inspected the json for the issue there is only service id option there.
not sure what to try with this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.