Hello!
I was trying to get user emails of the Jira API, when I came across this post that suggested that the only real way to do this was by creating a new Jira App and requesting permission to access the email API from Atlassian.
I’ve since been researching more on Connect apps but it doesn’t seem like this fits my use case, and I wanted to double check my understanding with the community.
So first off my use case is completely on the server side. i.e I need to get user emails from jira so that I can correlate/link user accounts with other services (github, pagerduty, etc). As such I do not need a UI component for my app. All I really need is an endpoint through which I can access user emails from my server.
The Connect App usecase seems to be geared towards apps that want to extend UI facing functionality. I did find support for “Background Scripts” but this also seems to be rendering an invisible component on the UI and keeps the logic on the client/web browser.
Is there a way to use Connect Apps for server to server communication? If not, what is the recommended way to achieve what I’m trying to do?
Any help is greatly appreciated! Thanks!
Welcome to the Atlassian developer community @SidBidasaria,
The Connect App usecase seems to be geared towards apps that want to extend UI facing functionality.
Yes. And our docs focus a lot on that. I completely understand if that “gearing” makes it feel like it’s only good if you want a UI.
Bias in the docs aside, Atlassian Connect is really a kind of “umbrella” over the REST APIs, Webhooks, and the UI extensibility. And you can use any of those in combination, without using all of them. Operationally, Connect Apps are very much “services” and are wholly appropriate for server-to-server communications (casually, that’s referred to as “asApp” in an auth context).
my use case is completely on the server side. i.e I need to get user emails from jira so that I can correlate/link user accounts with other services (github, pagerduty, etc).
I assume you are trying to do this for yourself (and your organization)? Would the correlation between systems be done in an RDBMS? There is still some overhead in getting approval to use the email API, but I think Connect does make sense for your use case.
1 Like
Thanks for the response @ibuchanan!
This is exactly what I was looking for. I also played around a bit more with the Spring starter you guys have for connect apps and it’s definitely something I can use for my current use case.
I’m trying to build this functionality for a new feature in our product that makes it easier to correlate data for users between their third party apps (including project management tools like jira, SCM tools and other).
How long does this approval process take on average?