I am using the internal API to get the GitLab Development info from the development field but it only returns the summary of the information. This is the endpoint that I am currently using.
url = f"{jira_base_url}/rest/dev-status/latest/issue/summary?issueId={issue.id}&applicationType=GitLab&dataType=branch"
The response is something like this. I need to get the all the data related to development, including branch names etc.
The ID for issue XXX-00000 is 000000
{
"configErrors": [],
"errors": [],
"summary": {
"branch": {
"byInstanceType": {
"GitLab": {
"count": 4,
"name": "GitLab"
}
},
"overall": {
"count": 4,
"dataType": "branch",
"lastUpdated": "2023-05-18T17:48:28.000+0530"
}
},
"build": {
"byInstanceType": {
"cloud-providers": {
"count": 7,
"name": "Other providers"
}
},
"overall": {
"count": 7,
"dataType": "build",
"failedBuildCount": 0,
"lastUpdated": null,
"successfulBuildCount": 6,
"unknownBuildCount": 1
}
},
"deployment-environment": {
"byInstanceType": {},
"overall": {
"count": 0,
"dataType": "deployment-environment",
"lastUpdated": null,
"showProjects": false,
"successfulCount": 0,
"topEnvironments": []
}
},
"pullrequest": {
"byInstanceType": {
"GitLab": {
"count": 1,
"name": "GitLab"
}
},
"overall": {
"count": 2,
"dataType": "pullrequest",
"lastUpdated": "2023-05-18T17:50:16.056+0530",
"open": true,
"state": "OPEN",
"stateCount": 1
}
},
"repository": {
"byInstanceType": {
"GitLab": {
"count": 8,
"name": "GitLab"
}
},
"overall": {
"count": 8,
"dataType": "repository",
"lastUpdated": "2023-05-18T17:47:26.000+0530"
}
},
"review": {
"byInstanceType": {},
"overall": {
"completed": false,
"count": 0,
"dataType": "review",
"dueDate": null,
"lastUpdated": null,
"overDue": false,
"state": null,
"stateCount": 0
}
}
}
}