ipatalas / vscode-sprint-planner

Plan your sprints in VSCode directly!
MIT License
36 stars 21 forks source link

How to configure the url of Azure devops #49

Open JunjeeChen opened 3 months ago

JunjeeChen commented 3 months ago

Does this extension use "https://dev.azure.com/{YourOrganizationName}"? Can I change it as we are not using "https://dev.azure.com"? I could not find the setting for this.

Thanks.

ipatalas commented 3 months ago

Nope, it's hardcoded: https://github.com/ipatalas/vscode-sprint-planner/blob/7394b821a09b7b7aa722b094dc2f4c81693d0c6d/src/utils/azure-client.ts#L83

Why would you need to change it? Is it possible to self-host DevOps?

JunjeeChen commented 3 months ago

Thanks for reply. Yes. our company has Azure DevOps with its own domain.

ipatalas commented 3 months ago

Oh. I see. In such scenario do you still have a concept of an organization in DevOps? I wonder which option will be correct:

https://custom-domain.com/${organization}/${project}/_apis/
https://custom-domain.com/${project}/_apis/
JunjeeChen commented 3 months ago

What we have is, https://global.tfs.${organization}.net/tfs/DefaultCollection/${project}/_apis/

ipatalas commented 3 months ago

Ok. I did publish a pre-release version with this new experimental feature. You can install it like this: image or this (if you have it already installed): image

There will be a new Base Url setting available: image

In your case you should set it to https://global.tfs.${organization}.net/tfs/DefaultCollection (without trailing slash) and please use actual value for the organization as this won't be replaced automatically.

Let me know if it works or not. If not then please check Output -> Azure DevOps planner window and let me know what the error is.

JunjeeChen commented 3 months ago

Hi Ireneusz,

Thanks a lot! I can access the TFS and fetch the workitem details by "US#", "IT#", "Area:" However, I noticed that the link in the response still points to the default URL.

For example, the #2000391 is pointing to wrong URL.

US#2000357 undefined:

[image: image.png]

On Mon, 17 Jun 2024 at 23:37, Ireneusz Patalas @.***> wrote:

Ok. I did publish a pre-release version with this new experimental feature. You can install it like this: image.png (view on web) https://github.com/ipatalas/vscode-sprint-planner/assets/2623329/4328d2c8-d961-4e11-8807-c7a27f7addde or this (if you have it already installed): image.png (view on web) https://github.com/ipatalas/vscode-sprint-planner/assets/2623329/0ce07ba4-2d19-47fd-bf35-bbe5aa73fa61

There will be a new Base Url setting available: image.png (view on web) https://github.com/ipatalas/vscode-sprint-planner/assets/2623329/c54a2c41-79c6-405f-9376-fa9d2210f29e

In your case you should set it to https://global.tfs. ${organization}.net/tfs/DefaultCollection (without trailing slash) and please use actual value for the organization as this won't be replaced automatically.

Let me know if it works or not. If not then please check Output -> Azure DevOps planner window and let me know what the error is.

— Reply to this email directly, view it on GitHub https://github.com/ipatalas/vscode-sprint-planner/issues/49#issuecomment-2173419738, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZQ4FVML5FFSPOJDRZ675LZH3RBDAVCNFSM6AAAAABIZ65RJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTGQYTSNZTHA . You are receiving this because you authored the thread.Message ID: @.***>

ipatalas commented 3 months ago

Oh.. you're absolutely right. I forgot about this feature :D Just published another pre-release version with a fix for that. Let me know if that helps.

JunjeeChen commented 3 months ago

Thank you, Ireneusz! It works exactly as I expected. Many thanks again!

On Tue, 18 Jun 2024 at 18:22, Ireneusz Patalas @.***> wrote:

Oh.. you're absolutely right. I forgot about this feature :D Just published another pre-release version with a fix for that. Let me know if that helps.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ipatalas commented 3 months ago

Ok, great! I will push that to non pre-release version then.

However I wonder if you know a bit more about configuring Azure DevOps with custom domain? I was trying to find some docs for that but couldn't find anything. For instance I don't know if global.tfs.${organization}.net is your specific thing or is this always going to be the same (except for organization segment) for other organizations as well.

My second thought is that you're using Azure DevOps Server which is Azure DevOps on-prem solution. Do you know enough about your setup to confirm or deny?

JunjeeChen commented 3 months ago

Sorry, Ireneusz. I'm not familiar with the custom domain and configuration details. This is managed by our IT department.

On Tue, 18 Jun 2024 at 23:27, Ireneusz Patalas @.***> wrote:

Ok, great! I will push that to non pre-release version then.

However I wonder if you know a bit more about configuring Azure DevOps with custom domain? I was trying to find some docs for that but couldn't find anything. For instance I don't know if global.tfs.${organization}.net is your specific thing or is this always going to be the same (except for organization segment) for other organizations as well.

My second thought is that you're using Azure DevOps Server which is Azure DevOps on-prem solution. Do you know enough about your setup to confirm or deny?

— Reply to this email directly, view it on GitHub https://github.com/ipatalas/vscode-sprint-planner/issues/49#issuecomment-2176102865, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZQ4FSOYSHQSYYZQ56QITTZIAYULAVCNFSM6AAAAABIZ65RJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZWGEYDEOBWGU . You are receiving this because you authored the thread.Message ID: @.***>

ipatalas commented 3 months ago

All right, don't worry. I'll leave this as it is then for now.

BTW how did you figure out URL to your API? https://global.tfs.${organization}.net/tfs/DefaultCollection/${project}/_apis/

JunjeeChen commented 3 months ago

Got the link from the internal dashboard. :-)

On Fri, 21 Jun 2024 at 06:01, Ireneusz Patalas @.***> wrote:

All right, don't worry. I'll leave this as it is then for now.

BTW how did you figure out URL to your API? https://global.tfs.${organization}.net/tfs/DefaultCollection/${project}/_apis/

— Reply to this email directly, view it on GitHub https://github.com/ipatalas/vscode-sprint-planner/issues/49#issuecomment-2181456460, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZQ4FRJ2PVXJHGPB6QGMS3ZIMYKRAVCNFSM6AAAAABIZ65RJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGQ2TMNBWGA . You are receiving this because you authored the thread.Message ID: @.***>