We created a smart value that gathers selected users in a form. We called it Group. When using the advanced branch to iterate through the users of the group. We give each iteration the variable name of "person" in the advance branching section. I can see the user values ({{person.displayName}}, {{person.emailAddress}}) when having the iteration log to the audit log. But when we go to post these to a web request post, the values are blank.
Replaced names and emails with ***** for privacy. But its does output the full name and email to the log
@{ "displayName": "Cole H******", "emailAddress": "cole.******
@******.com", "component": "Box" }, { "displayName": "Ryan D*******", "emailAddress": "ryan.**********
@*********.com", "component": "Box" }
For our web request we are using a custom data field and using this as the posted data
{
"displayName": "{{person.displayName}}",
"emailAddress": "{{person.emailAddress}}",
"component": "{{issue.components.name}}"
}
It should send the above payload 1 iteration (person) at a time for each person, which it does, except that the values for displayName and emailAddress are coming back blank.
Example Web Request Post payload results -
Payload
{
"displayName": "",
"emailAddress": "",
"component": "Box"
}
I dont understand why this smart value is not working to send the payload data we need to bettercloud to run a workflow against the data. Any ideas?
We can send {{issue.group.displayName}} or {{issue.group.emailAddress}} and that will show up with all of the users names and email addresses in the payload sent together. But that doesnt help if we want to iterate through the list of them one at a time. It seems like its breaking during the advance branching section. But only on the web request post action. And not on writing the users to the audit log.
Any help would be greatly appreciated!
Thank you!