Open primaju opened 5 years ago
@primaju thank you for the issue report - are you able to post the content of the browser console when this happens. I'll take a look at the code getting the data.
@nick-myers
Here it is:
1: VSS ready
board-cards.html:867 2: Registering backlog tab object
board-cards.html:867 3: Checking whether document is ready
board-cards.html:867 4: checkReady()
board-cards.html:867 5: Document readyState = complete
board-cards.html:867 6: Requiring VSS and TFS clients
board-cards.html:867 7: Main function started
board-cards.html:867 8: Document ready state = complete
board-cards.html:867 9: getIteration()
board-cards.html:867 10: getUsersSavedAreaPath()
board-cards.html:867 11: checkForSavedAreaPath()
board-cards.html:867 12: User does not have a saved area path. A 404 is expected when userAreaPath is requested
board-cards.html:867 13: setPrintHeader()
board-cards.html:867 14: getIterations()
board-cards.html:867 15: insertIterationSelectHeader()
board-cards.html:867 16: getWorkItemTypes()
board-cards.html:867 17: insertWorkItemSelectHeader()
board-cards.html:867 18: checkForSavedWorkItemTypes()
board-cards.html:867 19: addUpdateButton()
board-cards.html:867 20: getAreaPaths()
board-cards.html:867 21: checkForSavedAreaPath()
board-cards.html:867 22: getUsersSavedAreaPath()
board-cards.html:867 23: checkForSavedAreaPath()
board-cards.html:867 24: User does not have a saved area path. A 404 is expected when userAreaPath is requested
board-cards.html:867 25: insertAreaPathSectionHeader()
board-cards.html:867 26: displayPrintSizeOptions()
board-cards.html:867 27: getCardSize()
board-cards.html:867 28: displayFieldOptions()
board-cards.html:867 29: getUserFields()
board-cards.html:867 30: Contents of userFields is...
board-cards.html:88 Array(2)
board-cards.html:867 31: User has fields to display: 2
board-cards.html:867 32: userFields prior to entering for loop is:
board-cards.html:157 Array(2)
board-cards.html:867 33: addUpdateFieldsButton()
board-cards.html:867 34: Trying to displayWorkItems()
board-cards.html:867 35: displayWorkItems()
board-cards.html:867 36: sheetCount is: 0
board-cards.html:867 37: iterationChunk is: [System.IterationPath] = '
after looking to the code of the solution board-cards.html
source I could see that code
dataService.setValue('userAreaPath', linkId, {scopeType: 'User'}).
is never waited to execute because reload is hit before and page does not wait for value to be set.
I would suggest adding extra then
block and add location.reload(true);
there, or
update onclick
funtion to async
and add await
for VSS.getService
Describe the bug Regardless which iteration path for printing is selected. Page footer returns "Printing selected work item types in @CurrentIteration with 0 work items." and popup appears with the text "No work items were returned, please check the options selected and that work items are assigend to the iteration". Although after some time it works for a single selection and then stops again.
Azure DevOps Server 2019.1
To Reproduce Steps to reproduce the behavior:
Expected behavior It is expected to return items and the footer below should not show "Printing selected work item types in @CurrentIteration with 0 work items.", the selected iteration is not represented
Screenshots There is no way to present a screenshot
Desktop (please complete the following information):
Additional context It seems that the query is stuck or cached and selection of the iteration is not preserved during the postback. After some investigation it looks like the dataService.setValue for userIterationPath is set but lost after reload let iteration = dataService.getValue("userIterationPath", {scopeType: "User"}); is not getting the value.