This example shows how to import issues from GitHub to a board with custom fields using Miro API
Clone the repo and install the dependencies
git clone https://github.com/miroapp/app-examples.git
cd app-examples/github-issue-importer
npm install
cp .env.example .env
Add GITHUB_TOKEN
& MIRO_TOKEN
to .env
file
github-token
- GitHub token with reading issues permissions, e.g. withrepo
scope.miro-token
- miro token withboards:write
scope.
All configuration properties are stored within appConfig
object:
const appConfig = {
boardId: '',
inboxFrameId: '',
}
Properties which should be configured:
board-id
- board id for whichmiro-token
has access to.frame-id
- frame id which will hold the created widgets.
How to get frame id?
Click on "Copy link" as shown in the screenshot below:
The copied link would have frame id within
moveToWidget
query param, e.g.https://miro.com/app/board/<board-id>/?moveToWidget=3074457346806294028
To import data onto the board, run the following
npm start