Forums

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

XRay cloud REST API Authorization error 401

Zakhar Yermakovich
April 4, 2023

I'm trying to use REST API for Jira-Xray Cloud. I looked through this pages https://docs.getxray.app/display/XRAYCLOUD/Authentication+-+REST+v2 and https://docs.getxray.app/display/XRAYCLOUD/Global+Settings%3A+API+Keys

I only found this page https://id.atlassian.com/manage-profile/security/api-tokens for creating a user token. And I cannot see Client Id and Client Secret there. I only have the token created. 

Then I tried a REST API request with the token created, but got 401 "Invalid JWT: JsonWebTokenError: jwt malformed".

What am I doing wrong?

Xray_1.png

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Champion
May 25, 2018

Here is the link to the Cloud version of the documentation, https://confluence.atlassian.com/adminjiracloud/managing-your-workflows-776636587.html

Based on the screenshots it looks like you do not have the right permissions for the project you are trying to change, you should see lot more options if you have project admin permissions, and it is under Workflows that you can change the scheme used.

Workflows.png

Rena Yang
May 29, 2018

Hi Mikael, thanks for the reply! Under "People" for this Project, I'm showing up as the only administrator since I created the Project. Are you referring to this or are there other admin permissions that I'll need to gain?

Mikael Sandberg
Community Champion
May 29, 2018

If you are listed as project admin you should see more options under the project settings, compare your screenshot to mine. When you created the project, was it created with a shared configuration? Or did you use one of the templates provided?

Rena Yang
May 29, 2018

That was it! I used one of the templates provided. Changing to another template is now letting me configure the workflows. Thank you so much, Mikael!

Krishna Venkatraman
March 29, 2019

I am having the same problem. I am using a next gen project. Thanks!

Mikael Sandberg
Community Champion
April 1, 2019

@Krishna Venkatraman next-gen projects does not allow you to change the workflow, currently you are limited to what can be changed in those projects.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events