Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Can't retrieve refresh_token with offline_access scope when using oauth2 3lo in jira app integration

Copying fields from an issue to a linked issue

Anne Farr
Contributor
November 7, 2023

Hi, When linking a ticket I need specific information from the parent issue to be copied over when the linked ticket is created and going to a different project board.  Is there an automation rule that will do this.

Thank You,

Anne

3 answers

1 vote
Henry_Cooper
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 6, 2019

If anyone is still struggling, the refresh token is provided in the same dictionary as the access token.

 

So get the code using the authorisation url (making sure to add offline_access); your refresh token will then be in the response when you use that code to get the access token

Vinit Payal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2020

@Henry_Cooper not working for me as well as I adding the offline_access in the scopes in authorisation URL and got code but while using the code to get the access token am getting only acess_token and not the refersh_token :(

0 votes
Shaker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2021

it works for me but I think you are using the wrong URL it must be "https://auth.atlassian.com/authorize

or they just fixed it.

so basically you will get your refresh_token after you request for the access_token.

 I hope this will help. 

0 votes
Tarik Yurt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2018

Following this documentation https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps:

1.  Add `offline_access` to scope in the request to `https://auth.atlassian.com/authorize`, it will not return the refresh token.

2. Continue to the second step in the documentation: getting cloudid. Use the code from callback as in the documentation, the response of this request includes the `refresh_token`.

Aman Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2020

I didn't find it to be true.

Gideon Daniel Felt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2021

This does not work. I still can't seem to get the refresh token in the first place myself. from when exchanging the code. I don't get the refresh token.

Suggest an answer

Log in or Sign up to answer