I'm setting up an automation rule that creates a message in Microsoft Teams and I want to include some custom field data (of the issue) in the message but it does not get included in the messages. For example, I'm using this markup for the custom field "Customer":
{{issue.[Customer]}}
I can't even get native fields like "Summary" to show up with that markup:
{{issue.summary}}
What am I doing wrong?
Thanks!
Hi @Per Carlén
Context is important for automation rules. The symptoms you note could be caused by where the smart values are accessed within the rule.
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Kind regards,
Bill
Thanks! I will do that in the futer.
The problems in this case was that I didn’t use the proper syntax. I included the brackets around the custom fields and I didn’t use the correct casing for{{issue.Summary}}.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Per Carlén Appreciate the way you responded and hope it should help others.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Per Carlén
In addition to what @Ste Wright suggested, I would kindly like you to check and confirm if there are custom fields with the same name. Also, if that is the case or not, to avoid any confusion, you could try using custom field id to display the correct value {{issue.customfield_XXXX}} or {{issue.fields.customfield_XXXX}}
Kindly Accept this if it helps.
Thanks
Asha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! Your answer made me realize that I had included the brackets around the custom fields. Removing them solved the part of the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Per Carlén
Does this work on internal Automation Rules (i.e without Microsoft Teams involved)?
Also - ensure you're using the actual field name - smart values are case sensitive - eg. it might be {{issue.Summary}}, or {{issue.Customer}}.
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help!
My mistakes was that I included the brackets around the custom fields and didn’t use the correct casing for {{issue.Summary}}.
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.