The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Resourse selection

Oleg Melnychuk
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!
July 29, 2021

Hi, everyone. 

 

I created Oauth app and following documentation make request like this: 

https://auth.atlassian.com/authorize?
  audience=api.atlassian.com&
  client_id=YOUR_CLIENT_ID&
  scope=REQUESTED_SCOPE_ONE%20REQUESTED_SCOPE_TWO&
  redirect_uri=https://YOUR_APP_CALLBACK_URL&
  state=YOUR_USER_BOUND_VALUE&
  response_type=code&
  prompt=consent

Then I receive this window 

image.png

 

Like in documentation I make request to receive cloudId: 

  • curl --request GET \
      --url https://api.atlassian.com/oauth/token/accessible-resources \
      --header 'Authorization: Bearer ACCESS_TOKEN' \
      --header 'Accept: application/json'

    And there receive array of all resources. How can I get selected resource? 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Andy Heinzer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 3, 2021

Hi Oleg,

I understand that you appear to be creating an app or integration with Jira Cloud and are looking for some more details about how you can get a selected resource instead of the complete array of all resources available to that site.

I have not found a clear means to achieve this.  But I have found another thread where a Confluence Cloud integration creator appears to have been asking the same question over in https://community.developer.atlassian.com/t/is-there-a-query-parameter-to-filter-which-product-the-accessible-resources-api-lists/43231

While that post does not have any responses at this point, I still feel that the Developer Community site is probably the better resource in this case.

Andy

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events