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

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

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events