This is a API that generates a report based on the Digdir Roadmap, which uses the Github GraphQL API to fetch all issues related to "Nye Altinn" and generates success indicator values based on the start, end and closed dates and progression of the issues. This is returned as a JSON array of objects, which can be imported into PowerBI et. al. for further analysis.
- Clone the repo
- Navigate to the project directory
dotnet user-secrets set GitHubToken <your-github-PAT>
(the PAT must haveproject
,public_repo
,read:org
scopes)- Run the application (
dotnet run
) - Open
https://localhost:7127/report
in your browser (or import it to Excel via PowerQuery)
- Open a new Excel document
- Go to
Data
->Get Data (Power Query)
- Select
Empty Query
- Paste the following code into the editor:
let
Source = Json.Document(Web.Contents("https://localhost:7127/report")),
AsTable = Table.FromRecords(Source)
in
AsTable
- Click
Close & Load
to import the data
Alternatively, you can use File.Contents("/path/to/report.json")
to import a local file.