annapurna Frequent Contributor.
Frequent Contributor.
164 views

total_count , exceeds_total_count are not coming from defect get response

{                "total_count": 3,
                "data": [{
                                "type": "defect",
                                "creation_time": "2016-10-27T10:35:46Z",
                                "parent": {
                                                "type": "work_item_root",
                                                "id": "1001"
                                },
                                "version_stamp": 9,
                                "description": "<html><body>\n<p>Emptying out items in cart takes way too long. It could take more than 45 seconds. </p> \n</body></html>",
                                "id": "1014",
                                "severity": {
                                                "type": "list_node",
                                                "id": "1005"
                                },
                                "name": "Emptying out items in cart takes way too long",
                                ...
                },
                {
                                "type": "defect",
                                "creation_time": "2016-10-27T10:32:23Z",
                                "parent": {
                                                "type": "feature",
                                                "id": "1007"
                                },
                                "version_stamp": 8,
                                "description": "<html><body>\n<p>Shortcut key for deleting all items in cart does not work when there are more than 10 items in the cart.</p> \n</body></html>",
                                "id": "1012",
                                "severity": {
                                                "type": "list_node",
                                                "id": "1003"
                                },
                                "name": "Shortcut key for deleting all items in cart does not work.",
                                ...
                },
                {
                                "type": "defect",
                                "creation_time": "2016-10-27T10:33:03Z",
                                "parent": {
                                                "type": "feature",
                                                "id": "1007"
                                },
                                "version_stamp": 9,
                                "description": "<html><body>\n<p>When adding one item to cart, it appears as if the item was added two times. In actuality, it is only added once. If the user refreshes the screen, it appears correctly. This only happens in Chrome.</p> \n</body></html>",
                                "id": "1013",
                                "severity": {
                                                "type": "list_node",
                                                "id": "1005"
                                },
                                "name": "When adding one item to cart, it appears as if the item was added two times.",
                                ...
                }],
                "exceeds_total_count": false
}


my url is :http://server:80/qcbin/api/domains/DOMAIN_NAME/projects/PROJECT_NAME/defects/

Response :

{ "data": [{ "type": "defect", "creation_time": "2016-10-27T10:35:46Z", "parent": { "type": "work_item_root", "id": "1001" }, "version_stamp": 9, "description": "<html><body>\n<p>Emptying out items in cart takes way too long. It could take more than 45 seconds. </p> \n</body></html>", "id": "1014", "severity": { "type": "list_node", "id": "1005" }, "name": "Emptying out items in cart takes way too long", ... }, { "type": "defect", "creation_time": "2016-10-27T10:32:23Z", "parent": { "type": "feature", "id": "1007" }, "version_stamp": 8, "description": "<html><body>\n<p>Shortcut key for deleting all items in cart does not work when there are more than 10 items in the cart.</p> \n</body></html>", "id": "1012", "severity": { "type": "list_node", "id": "1003" }, "name": "Shortcut key for deleting all items in cart does not work.", ... }, { "type": "defect", "creation_time": "2016-10-27T10:33:03Z", "parent": { "type": "feature", "id": "1007" }, "version_stamp": 9, "description": "<html><body>\n<p>When adding one item to cart, it appears as if the item was added two times. In actuality, it is only added once. If the user refreshes the screen, it appears correctly. This only happens in Chrome.</p> \n</body></html>", "id": "1013", "severity": { "type": "list_node", "id": "1005" }, "name": "When adding one item to cart, it appears as if the item was added two times.", ... }], }


please help to get total count . thank you in advance
0 Likes
1 Reply
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: total_count , exceeds_total_count are not coming from defect get response

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.