Next, we want to add the ability to create a new item from our Budibase app. We want to be able to pass in the item title, to the create query. To do this, we’ll create a query with parameters:
Click on your GitHub datasource
Click “Add Query”
Enter the name “Create new item”
The function is “POST”
Add a parameter called “item_title”
Set the “Path” to /repos/<github_user>/<github-repo>/issues
Set the Body to { “title” : “{{ item_title }}” }
. This will pass our item_title
parameter into the “title” field, in the JSON body.
Test your query to make sure that an issue is created.