Hi Team,
I am trying to create an excel file using array coming via API. I am able to get of the data but not sure how to get data from child array.
Here is the sample date :
I am able to get account_id , name, email but I am not able to get each product last_active date.
I want to store account_id,name, email and last_active only for those users in which under product_access key : 'jira-software' and "workspaceAri": "ari:cloud:jira-software::site/95531a2e-c5af-4074-bf24-7cbaf74d4a25",
[
{
"account_id": "557058:0027676d030f5aaf",
"account_type": "atlassian",
"account_status": "inactive",
"name": "Ishant",
"picture": "",
"email": "ishant@abc.com",
"access_billable": false,
"last_active": "2018-08-23T11:56:10.979248Z",
"product_access": [
{
"name": "Trello",
"key": "trello",
"tier": "Free",
"realm": "global",
"regions": [],
"url": "trello.com",
"last_active": "2016-10-03T09:47:47.969Z"
},
{
"name": "Bitbucket",
"key": "bitbucket",
"realm": "global",
"regions": [],
"url": "bitbucket.org",
"last_active": "2018-08-23T11:56:10.979248Z"
}
],
"links": {
"self": "https://api.atlassian.com/users/557058:f8-d66d030f5aaf/manage/profile"
}
}, "account_id": "557058:01205c5b-29-62d9dae4c453",
"account_type": "atlassian",
"account_status": "active",
"name": "Nial",
"picture": "",
"email": "niall@abc.com",
"access_billable": true,
"last_active": "2024-07-10T15:00:14.394848115Z",
"product_access": [
{
"name": "Opsgenie",
"key": "opsgenie",
"siteId": "919e3a55-c-573f51bc2e2a",
"realm": "global",
"regions": [],
"workspaceAri": "ari:cloud:opsgenie::site/919e3a55-c9c4-4df8-acfd-573f51bc2e2a",
"url": "spddev.atlassian.net",
"last_active": "2022-09-30T20:38:53.545922Z"
},
{
"name": "Jira Software",
"key": "jira-software",
"siteId": "95531a2e-c5af-4074-7cbaf74d4a25",
"realm": "global",
"regions": [],
"workspaceAri": "ari:cloud:jira-software::site/95531a2e-c5af-4074-bf24-7cbaf74d4a25",
"url": "spr.atlassian.net",
"last_active": "2024-07-10T15:00:14.394848115Z"
},
{
"name": "Jira Software",
"key": "jira-software",
"siteId": "cb8997e3-21d0-41-52e4466be317",
"realm": "global",
"regions": [],
"workspaceAri": "ari:cloud:jira-software::site/cb8997e3-21d0-43ca-8321-52e4466be317",
"url": "spr-sandbox.atlassian.net"
},
{
"name": "Bitbucket",
"key": "bitbucket",
"realm": "global",
"regions": [],
"url": "bitbucket.org",
"last_active": "2020-12-10T15:21:16.184282Z"
}
],
"links": {
"self": "https://api.atlassian.com/users/557058:012051a9-62d9dae4c453/manage/profile"
}
}
]