I have a convoluted setup where one automation triggers a webhook that in turn triggers a second automation. On the second automation I am thus unable to use {{initiator.displayName}} to display who originally caused the chain of events.
What I was able to do is capture the initiator in the first automation and pass it forward via the webhook as a value called initiator. I can then use {{webhookData.initiator}} to access that accountId on the second automation.
{
"issues": [
"{{issue.key}}"
],
"initiator": "{{initiator}}"
}
If I add this value to a user picker, it works fine, but I want to use it in the body of an email.
I tried this:
{{webhookData.initiator.displayName}} has requested approval for {{issue.key}}.But the result was:
has requested approval for CM-1.
If I don't use displayName, it returns the accountId.
Any suggestions for getting a first and last name as text from this variable?