Seeking advice on a minimal Connect app for Jira

I’m working on an in-house application that needs to interact with Jira Service Management Cloud and, on occasion, it needs to do so on behalf of a user because the REST API assumes operations are being done on behalf of the authenticated user.

I’ve been trying to see if there is a way to impersonate users and found this: User impersonation for Connect apps

An example bit of code (Bitbucket) suggests that “all” I need is an app client ID and an app shared secret and I can get my own code to then impersonate a user.

So I’m trying to find out what is the absolute minimum I can do to develop a Connect app that would give me an app client ID and an app shared secret? I don’t need the Connect app to do anything. All I’m trying to do is get the client ID and secret.

I do appreciate that I would need to enable developer mode on our JSM instance so that we can manually install our private “minimum” Connect app.

Thanks for any possible help.

Probably the easiest thing would be to use a Jira example app from Atlassian. Just rename the app and app descriptor, adjust the permissions to allow user impersonation, and use it “as is”.
Be aware that you must host such an “internet accessible”, so you’d need to take care of security.

1 Like