Here's a simplified version of a JSON array which I am getting back from a Jira REST endpoint. I store the issues in a PowerApps collection called jiraRawData.
"issues":[
{
"id":"1",
"assignee":null
},
{
"id":"2",
"assignee":{
"displayName":"john"
}
},
{
"id":"3",
"assignee":{
"displayName":"john"
}
},
{
"id":"4",
"assignee":{
"displayName":"mary"
}
}
]
I want to display issues in a Gallery component and I can do that no problem.
However what I would like to do is to display the unique assignee names only so for the input above I would just like to see the following in my gallery
john
mary
- I have tried assigning the Items property of the gallery component to Distinct(jiraRawData, "assignee") but it doesn't work. I've tried so many things and I'm out of ideas.
- I'm also having issues displaying the assignee in a gallery even when I just supply jiraRawData as the Items property I get the following error Invalid use of '.' when using ThisItem.fields.assignee.displayName as the Text attribute.
Any help greatly appreciated.