Log a machine through QR code

Hi,

We are thinking of moving from jira dc to cloud and I am trying to understand possibilities with jira forge.

We would like to make it possible to via generated qr code log in to jira on a phone and match the user with machine id (that could be hidden in the qr code). In the meantime machine asks a different url to get a matched authentication and then can create tickets in jira. The case is machine has no proper input like keyboard etc. but still can send some usefull information and automat a work for users.

On DC we used custom rest endpoints and personal tokens. What would be a good way to do it on cloud.

I already know there is no custom restendpoint but that’s probably achivable via jira app (forge) and keep matched data in Forge SQL. But there is also no personal tokens, so what would you advice as a best way to impersonate the user by the machine.

You can create custom endpoints with web triggers and impersonate users with the asUser function for requestJira if you’re making API requests. There’s also newly offline impersonation.

1 Like

Hi, Aaron

thanks, web triggers definitely come in handy in this. Although asUser won’t work for me because the external app call won’t be authorized by the user that’s the thing. I want the web trigger to know which user is using the machine through qr code (phone) authorization. As I understand now it’s not possible. I’d need to create a whole external app rather than use Forge app. What I can do is create an issue and set the user as reporter/assignee but using asApp.