I'm attempting to build an automation which would allow for updating an Epic's Original Time and Remaining Time based on the values associated with their stories. I'm having an issue though because when I do a web request I'm getting a 401 error regardless of whether I'm using a bearer or basic authentication method. I know that I have access to this Epic and its Stories.
This is my request.
I'm getting a 401 error when I attempt to use it. I've used both Bearer and Basic Auth methods. Bearer with my PAT and Basic with a base64 encoded username:password. I'm not sure why I'm having this error and I would appreciate any assistance.
Hello @nicholas kurtz
In Data center, Bearer<space>PAT is the correct way. (Basic + base64 encoding is only for Cloud. Also, you dont need to pass additional headers to the API, so remove Application/Json entry.)
Finally, instead of trying endpoints with smart values like you are doing, replace the URL with generic end point, like below:
https://yourdomain.net/rest/api/2/projectCategory
And click validate with out passing any argument to verify your credentials are good and you are seeing 200.
Hope it helps.
Yes thank you. Working with a bearer token does fix the issue and I'm able to authenticate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.