reportportal/plugin-bts-azure

RP V5.7 | What is Project Key and Which API Key to Use

Closed this issue · 11 comments

Hi Guys,
can someone tell me what is Project Key below and where to fetch the same in AzureDevOps. And What is the API Key to use (does it mean PAT of a user, not sure without username how the PAT will be authenticated).

image

cc: @pbortnik

Any news on this?

Hi @bhargavkumar-65
"Project key in BTS" is your project name in AzureDevOps, please see the screenshot below
image

ApiKey can be generated in AzureDevOps:

  1. Go to the "User settings" in the top right corner
  2. Open "Personal Access Tokens" tab -> click "+ New token"
  3. Fill in the obligatory fields and click "Create"

The generated token should be used for the integration

Hi @bhargavkumar-65 "Project key in BTS" is your project name in AzureDevOps, please see the screenshot below image

ApiKey can be generated in AzureDevOps:

  1. Go to the "User settings" in the top right corner
  2. Open "Personal Access Tokens" tab -> click "+ New token"
  3. Fill in the obligatory fields and click "Create"

The generated token should be used for the integration

It worked, thx

@shatulsky @VolhaKarenko
above process is not working for me.

image

here is the Network Call Response.

{"errorCode":40302,"message":"Impossible interact with integration. Unable to connect to Azure DevOps. Code: 400, Message: A potentially dangerous Request.Path value was detected from the client (:)."}

@shatulsky @VolhaKarenko
PAT used with Full Access.

image

@shatulsky @VolhaKarenko PAT used with Full Access.

image

You should include project name to BTC link.
You may copy it from any ticket url - e.g. https://dev.azure.com/**ProjectName**/azure-web/_workitems/edit/33094
Screenshot_20220615-184122_Teams

Hi @shatulsky @VolhaKarenko ,

This plugin works only when my BTS Link is "dev.azure.com" where as in my case it is "myOrgname.visualStudio.com"

@bhargavkumar-65 could you please share the service-api logs with the error on integration creation?
Could you also clarify how you have deployed Azure with the mentioned URL?

I would also like to use this plugin but my Azure is not located on the "dev.azure.com". Is there a plan to support any Azure server?

{"errorCode":40302,"message":"Impossible interact with integration. Unable to connect to Azure DevOps. Code: 400, Message: A potentially dangerous Request.Path value was detected from the client (:)."}

Here is the API Errors.
{"errorCode":40302,"message":"Impossible interact with integration. Unable to connect to Azure DevOps. Code: 400, Message: A potentially dangerous Request.Path value was detected from the client (:)."}

I am not sure about the deployment.

closing this issue as this is not valid, i just found that myOrgname.visualStudio.com is a domain name that is being redicted from dev.azure.com/myOrgname