MicrosoftPremier / VstsExtensions

Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
MIT License
56 stars 14 forks source link

nothing returning in drop downs for configuration of task #118

Closed wadehephner closed 3 years ago

wadehephner commented 3 years ago

I have just installed the extension and I am using it in a pipeline, however when i add the task there are no projects in the team project drop down and it does not seem to see all of my other projects within my organization.

thanks, wade

ReneSchumacher commented 3 years ago

Hi @wadehephner,

I assume you're talking about the Create Work Item task, right? Could you tell me, where you installed it? Is it Azure DevOps Service (cloud) or Azure DevOps Server/Team Foundation Server (on-prem)?

wadehephner commented 3 years ago

Hello @ReneSchumacher , sorry yes, I should have supplied that. It is the Create work item task and it is in azure devops cloud.

wadehephner commented 3 years ago

Hello @ReneSchumacher do you have any update on this issue?

thanks, -wade

ReneSchumacher commented 3 years ago

Hi Wade,

sorry for the delay, I'm currently on vacation ;-) Could you please remove the extension and reinstall it, just to make sure that this is not caused by some installation issue.

Could you then please open the following URL in your browser and check if it returns your projects: https://dev.azure.com/{your organization}/_apis/projects?$top=1000&api-version=3.0

wadehephner commented 3 years ago

Hello Rene, sorry about bothering you on vacation, I removed and reinstalled the extension, and the url does return a list of projects, however in the pipeline it still does not return the project list.

thanks, -wade

ReneSchumacher commented 3 years ago

Hi Wade,

sorry again for the delay (still on vacation and not checking my work mail regularly). This is indeed pretty strange. Could you please try the following steps:

  1. Create a new empty classic build pipeline.
  2. Add the Create Work Item task to the pipeline.
  3. Open the developer tools in your browser by pressing F12 (should work in all browsers but I suggest using either Google Chrome or the new Microsoft Edge based on the Chromium engine).
  4. Switch to the Network tab of the developer tools and click the Clear button (second from the left, black circle): image
  5. Click the Refresh button next to the Team Project field in the Create Work Item task UI: image
  6. After clicking the Refresh button you should see a call to the Azure DevOps backend in the developer tool's Network tab. Click the Export HAL button to save the information of the call: image
  7. Send the saved .har file to PSGerExtSupport@microsoft.com so I can take a closer look at what's going on.
wadehephner commented 3 years ago

Hello Rene, no worries on the vacation, enjoy your time off. I did want to send you a screen shot because I do not see what you are showing in your images. I create a new build pipeline and go to add the Create Work Item task however I do not see a refresh button next to team project. When i create a release pipeline the extension is working fine, it is in the build pipeline where I wish to use this extension and that is where is it not working. please see my attached screen shot.

image

ReneSchumacher commented 3 years ago

Aah, now I see what's going on :)

You are using the task helper UI while creating a YAML pipeline. Unfortunately, that UI does not have the same capabilities as the classic pipeline UI. It cannot make REST calls, which is why it is neither showing the team projects nor the refresh button. In addition, the task helper UI does not support custom task editors, which is why you don't see the ellipsis (triple dot) button next to Area Path, Iteration Path, and Additional Fields.

All of those UI features are not supported by the task helper UI. You can still enter values in the UI (except for the team project) and add the YAML snippet to your pipeline definition. Afterwards, you have to add any missing values directly in YAML. A full list of all YAML settings can be found at https://github.com/MicrosoftPremier/VstsExtensions/blob/master/CreateWorkItem/en-US/overview.md#adding-the-task-to-a-yaml-definition.

Hope that helps.

wadehephner commented 3 years ago

ah well now that all makes sense. thanks for the clarification. I appreciate your time.