Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you might find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Data Connection to API

Peter Kakouros
Contributor
December 2, 2024

I am trying to create a data connection using an API and I do not understand where to add the authentication? Whenever I use JWT, the connection works for 1 hour and then the token expired and no long have access to the API. How do I configure the data connection to remain active?

1 answer

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 2, 2024

Hello, Good day. Please share the steps that you followed to create the token. Thanks

Peter Kakouros
Contributor
December 4, 2024

I created the token using Microsoft Authentication. This API: https://login.microsoftonline.com/[company tenantID]/oauth2/v2.0/token.

Then I take that token and add it  here (screenshot): But the token exipres every hour. There should be a way to add the token creation in the settings (OAuth) WHere is that?

Screenshot 2024-12-04 141028.png

Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2024

Thanks. From Jira cloud you are creating a connection to Microsoft online. As this token is created and managed on the Microosft side, please followup with the Microsft team. Thanks

Peter Kakouros
Contributor
December 5, 2024

I think you misunderstood what I want to achieve. I want to use an API with Oauth2 authentication. This is a world wide standard for API use. This is not just Microsoft, Google and many other API providers use this authentication. My question is can I get this while using data connections?

Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2024

If you are looking to run API call against Jira cloud using the Oauth then the following link will help. https://confluence.atlassian.com/jirakb/how-to-use-oauth2-0-in-postman-client-for-jira-cloud-apis-1409092149.html

 

Still I am not clear on which end point is client and which end point is the server in your REST call.

Peter Kakouros
Contributor
December 8, 2024

I want to create a custom drop down field in Jira that when you select it, an API call is executed that will return the body of the API call. I have it working but not with Oauth API, I can only setup a basic API authentication. My question from the beginning is how do I setup an API that uses oAuth authentication in a Jira custom field???

Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2024

Please refer to the steps in https://confluence.atlassian.com/jirakb/how-to-use-oauth2-0-in-postman-client-for-jira-cloud-apis-1409092149.html

In this article Postman client is used, but process to create API is same

Peter Kakouros
Contributor
December 9, 2024

Hello,

Can you please kindly send this request to another team member. You are not understanding the issue. This article you sent has absolutely nothing to do with Jira custom fields. 

Thank you for the effort.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events