- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-08-2025 02:47 AM
Hello everyone, I would like to ask how to get the user.name
value from this context data.
I tried using the syntax ${incident.labels.user.name}
, but it didn’t work.
Here's the context structure:
{
incident: {
...
labels: {
user.name: "john doe",
...
}
...
}
}
Any suggestions?
05-08-2025 05:47 AM
Hey there,
that looks a bit strange, as a general hint, the context data (once you open it) the keys are clickable and will copy the path to clipboard.
So it would be an idea to use that and check the path.
I must confess that as this are Javascript Objects I would expect user_name instead of user.name to be in the labels
05-08-2025 06:49 PM
Thank you for your response @JStephan . When i clicked the key it showed
incident.labels.user.name
i was able to solve the issue by adding a new object that retrieves the value from
user.name
object.
Thanks for the hint!
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!