-
Suggestion
-
Resolution: Unresolved
-
None
-
3
-
1
-
Summary
Automation functions don't work on the Assets attributes.
The automation conditional logic will not work with Assets attributes (except for the default attributes like Name, Key, etc.)
Steps to Reproduce
- Add a text attribute to one of the object types and set a value for an object
- Create an automation rule using conditional logic to add a comment to set an additional approver if the reporter of an issue and the Approver selected in the Application are the same.
{{#if(equals(issue.reporter.accountId, issue.Application List.Approver))}} Add another approver for review because reporter and approver are the same{{/}}
Expected Results
The comment "Add another approver for review because reporter and approver" is added when the reporter and approver are the same user. And the rule fails to add a comment when the condition doesn't meet.
Actual Results
The rule fails in both the scenarios with error "Comment body can not be empty! " because the conditional logic returns nothing even if the value of the reporter and approver matches.
Workaround
- Create a variable "AppVar" to store the asset attribute value of the approver:
{{Issue.Application List.Approver}}
- Then use the conditional logic instead:
{{#if(equals(issue.reporter.accountId, AppVar))}} Add another approver for review because reporter and approver are the same {{/}}
- is related to
-
JSDCLOUD-10177 Automation smart value date time functions do not work on the Assets date time attributes
-
- Closed
-
Hi everyone,
This is Radu from the JSM Assets team. We would like to thank you for all the comments on the current need to leverage referenced attributes in Automation. The current functionality where conditions are limited to simple values is expected. I have thus converted this Bug to a Suggestion so that your votes will carry over and you can continue to track our progress.
Best,
Radu Apostoleanu