Contents

Log issues to GitHub from a Power App

Using the new GitHub connector users can easily provide feedback and log issues directly in your Power App

Steve Maguire once said
“Never allow the same bug to bite you twice.”

Introduction

/log-issues-to-github-from-a-power-app/images/phone-log-github-issues-in-powerapps.png
Submit a GitHub issue using Power Apps
I’ve installed a lot of Power Apps templates and community applications lately, most of them are hosted and maintained on GitHub and very little too few of them provide the ability for your to log and issue or provide feedback of the application.

With the latest GitHub connector1 release, I build a simple issue tracking application using Power Apps and Power Automate that will allow users to log issues in the application. The idea is simple, the Power App runs a Power Automate flow that will create an issue in GitHub.

In the future I will investigate more functionality like release management and even a what’s new section.

Preview

Preview of the app

Let’s build the Power App

/log-issues-to-github-from-a-power-app/images/create-powerapps-step1.png
Create textboxes in a Power App
The first step is to create a Power App, and add two textboxes and a button onto a page

/log-issues-to-github-from-a-power-app/images/create-powerapps-step2.png
Connect Power Apps to Power Automate
Next you need to add a Power Automate action to your button click. You first slect the button and on the menu bar select the OnSelect event and Power Automate in the menu. This will bring up a menu with all the Power Automates linked to your Power App. Select Create a new flow. This will take you to the Power Automate interface.

Power Automate

/log-issues-to-github-from-a-power-app/images/create-powerapps-step3.png
Send JSON as parameters
On the Power Automate screen, you want to pass the content from your Power App to the flow. In order to do this, select Ask in Power Apps.

/log-issues-to-github-from-a-power-app/images/create-powerapps-step4.png
Parse JSON and submit to GitHub
The last step is to take the content that was passed and convert it from JSON. The JSON is passed in as a paramater (Step 4 of the Power App) and I set the GitHub Title and Description.

You can download my example application from my GitHub repo.2

References


  1. GitHub Connector ↩︎

  2. GitHub Repro for Power App Download ↩︎