I am using Webhook to get data from JIRA to our app. But there are some scenarios where I am not getting data from webhooks. So I have decided to use the REST APIs as well.
Now when I am trying to get a refresh token as per the documentation which says to pass a refresh token inside the POST request '/oauth/token'
, But I don't get the refresh token from this endpoint.
I’ve added
The response I am getting is
[access_token] => xxxxxxxxxxxxxxxxxxx [expires_in] => 3600 [token_type] => Bearer [scope] => manage:jira-project manage:jira-configuration manage:jira-data-provider read:jira-work manage:jira-webhook write:jira-work read:jira-user
Please let me know if I am doing anything wrong Or what I can do to get the refresh token which could be used for the other API calls later.
Hi ,
You have to add offline_access
to the scope parameter.
See the documentation : https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/#faq-rrt-config
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.