Retrieve Report Comments using the Smartsheet API - smartsheet-api

I can successfully use the Smartsheet API to retrieve Comments from Sheets, but I'm struggling to do so for Comments on Reports.
I'm stuck at the point of retrieving a Report's Discussions using the https://api.smartsheet.com/2.0/reports/{reportId}?pageSize=10&page=0&include=discussions. This API call successfully returns the Discussions themselves, but not the entire thread of Comments.
The documentation specifies to use the GET /sheets/{sheetId}/discussions/{discussionId}?include=comments, however it seems as though I can only list the Discussions of a Sheet and not a Report as I don't believe /reports/{reportId}/discussions is an endpoint that the Smartsheet API exposes. It also doesn't seem as though the /reports/{reportId} endpoint accepts include=comments either.
Any thoughts on how I can retrieve the full comments of a Report?

Reports in Smartsheet are always tied to a sheet, so any comment on a report will be shown in the source sheet. You should retrieve the comments from the source sheet for the report you're working in.

Related

Azure DevOps Permissions Report - going beyond the default count of 100

I am trying to use the Azure DevOps Permissions Report - List REST API to download a list of permission reports that were generated by me. The subsequent operation is to download each report. The issue I am facing is 'List' provides only 100 reports at once. I can't seem to get more than 100 reports by supplying parameters like $top, $skip as suggested in a few discussions. There is no x-ms-continuation-token either. As I am using this approach to generate permissions report for Azure Repos, the number of reports are really large, well beyond 100.
It seems that this REST API Permissions Report - List has not yet been fully implemented:
And there is no x-ms-continuation-token parameter and so on as you have found. See thread for more details.
BTW, you could submit your feedback here, so the author could review it.

Export of discussion notes from Azure DevOps

Is there a way to export discussion notes from Azure DevOps Work items like Task/Bug etc. Or is there a way in Azure DevOps to get a consolidated web view of discussion? Or can you suggest any extensions that help achieve this?
Checked Azure DevOps for getting the dump through query which did not work
Using the rest api below, you can get the comments records of multiple work items from the response body.
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems?ids={ids}&api-version=5.1
But the flaw of this rest api is that it can't display all the comment records, only display the latest comment of this work item.
If you want to get all the comments of a work item, you need to use the rest api below. However, the drawback of this rest api is that it can only return all the comments of a work item, and cannot display the comments records of multiple work items.
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{id}/comments?api-version=5.0-preview.2

General question about SmartSheet API and creating a user interface

My company keeps individual employee schedules. Each employee manages their own schedule. Admin,supervisors and project manager have to go to each sheet and look for the information.
I need to create a system that allows someone to select a date range and skill set then produce a sheet with the information that matches the criteria. I have installed the Python API and worked through a few tutorials.
Now I need to know how to make command buttons, date pickers . . .
A quick read of my search results indicates that this is not part of the Smartsheet API!
Is there a way to do this through the SmartSheet API? Or how would you approach this?
The Smartsheet API enables you to programmatically access data in Smartsheet (i.e., create, read, update, delete data in Smartsheet). This is true for all APIs -- they simply provide a means for you to programmatically access data. You'll need to build the web app's user interface (UI) yourself by using HTML, CSS, JavaScript, etc.
Alternatively -- instead of building a custom web application like you've described -- I'd suggest that you look into the possibility of creating Smartsheet Reports that can provide the data you've described. You can create Smartsheet Reports via the Smartsheet UI -- so you wouldn't need to do any programming at all.

How to grab all the issues inside a jira structureboard using REST api

I have been researching Jira REST api in order to grab all the test cases inside my structures but I haven't had any luck. The closes I have been to getting inside a structure is using the URL $baseUrl/rest/structure/2.0/structure. From there I tried to manipulate the url into giving me all the information about a specific structure.
For example, I used $baseUrl/rest/structure/2.0/structure/$id but I only got back
{"id":135,"name":"TEST PLAN 1","description":""}
There is hardly any information in this REST api call. IS there a way to have it list out all the issue keys(test cases) in the structure i pick?
Information Regarding JIRA Structure REST API is posted here https://wiki.almworks.com/display/structure/Forest+Resource

Smartsheet API create/update reports possible?

Just verifying that Reports can not be created or modified using the API.
I'm using Python.
Craig
You are correct. The Smartsheet API allows you to publish or share an existing report, but it does not allow you to create or modify.
We would love to hear about your specific use case as we consider future enhancements to the API. Let us know what you're trying to do at api#smartsheet.com.