Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log states that items were updated successfully, but they weren't #79

Open
cedricroggwiller opened this issue Jan 21, 2021 · 3 comments

Comments

@cedricroggwiller
Copy link

We were really looking forward to using this Azure DevOps Extension, but somehow we are facing issues with it.
We've set it up in the release pipeline and it always finds the right work items to update, the log also says that the items were updated, but when we then look at the corresponding items, they still have the old status, nothing has changed with them.

Can someone help out here? Perhaps we did something wrong in the config?
Thanks a lot!

Here is the debug log:

2021-01-20T16:26:42.7746677Z ##[section]Starting: WorkItem Updater: Set linked items to Testing
2021-01-20T16:26:42.7871717Z ==============================================================================
2021-01-20T16:26:42.7871835Z Task         : WorkItem Updater
2021-01-20T16:26:42.7871868Z Description  : This task adds functionality to update WorkItems during a Build or Release.
2021-01-20T16:26:42.7871902Z Version      : 2.5.801
2021-01-20T16:26:42.7872060Z Author       : Blue Basher
2021-01-20T16:26:42.7872118Z Help         : 
2021-01-20T16:26:42.7872147Z ==============================================================================
2021-01-20T16:26:43.0699341Z ##[debug]agent.TempDirectory=C:\azagent\A1\_work\_temp
2021-01-20T16:26:43.0738440Z ##[debug]loading inputs and endpoints
2021-01-20T16:26:43.0744368Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2021-01-20T16:26:43.0759645Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2021-01-20T16:26:43.0764909Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2021-01-20T16:26:43.0769954Z ##[debug]loading INPUT_ALLWORKITEMSSINCELASTRELEASE
2021-01-20T16:26:43.0773289Z ##[debug]loading INPUT_BYPASSRULES
2021-01-20T16:26:43.0776037Z ##[debug]loading INPUT_FAILTASKIFNOWORKITEMSAVAILABLE
2021-01-20T16:26:43.0778680Z ##[debug]loading INPUT_LINKBUILD
2021-01-20T16:26:43.0781436Z ##[debug]loading INPUT_UPDATEASSIGNEDTO
2021-01-20T16:26:43.0784049Z ##[debug]loading INPUT_UPDATEASSIGNEDTOWITH
2021-01-20T16:26:43.0786763Z ##[debug]loading INPUT_WORKITEMDONE
2021-01-20T16:26:43.0789329Z ##[debug]loading INPUT_WORKITEMLIMIT
2021-01-20T16:26:43.0791888Z ##[debug]loading INPUT_WORKITEMSSOURCE
2021-01-20T16:26:43.0808162Z ##[debug]loading INPUT_WORKITEMSTATE
2021-01-20T16:26:43.0810798Z ##[debug]loading INPUT_WORKITEMTYPE
2021-01-20T16:26:43.0817466Z ##[debug]loaded 14
2021-01-20T16:26:43.0838258Z ##[debug]Agent.ProxyUrl=undefined
2021-01-20T16:26:43.0840559Z ##[debug]Agent.CAInfo=undefined
2021-01-20T16:26:43.0841018Z ##[debug]Agent.ClientCert=undefined
2021-01-20T16:26:43.0841344Z ##[debug]Agent.SkipCertValidation=undefined
2021-01-20T16:26:43.3966100Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/xxxx
2021-01-20T16:26:43.3977773Z ##[debug]SYSTEMVSSCONNECTION auth param AccessToken = ***
2021-01-20T16:26:43.4028284Z ##[debug]Build.BuildId=13443
2021-01-20T16:26:43.4028928Z ##[debug]System.TeamProjectId=xxxx
2021-01-20T16:26:43.4029272Z ##[debug]Build.RequestedFor=xxxx
2021-01-20T16:26:43.4034684Z ##[debug]workitemsSource=Build
2021-01-20T16:26:43.4035558Z ##[debug]workitemsSourceQuery=undefined
2021-01-20T16:26:43.4038998Z ##[debug]allWorkItemsSinceLastRelease=false
2021-01-20T16:26:43.4041666Z ##[debug]workItemType=Bug,Task,User Story
2021-01-20T16:26:43.4044271Z ##[debug]workitemLimit=100
2021-01-20T16:26:43.4046700Z ##[debug]workItemState=Testing
2021-01-20T16:26:43.4047109Z ##[debug]workItemCurrentState=undefined
2021-01-20T16:26:43.4047381Z ##[debug]workItemKanbanLane=undefined
2021-01-20T16:26:43.4047682Z ##[debug]workItemKanbanState=undefined
2021-01-20T16:26:43.4050232Z ##[debug]workItemDone=false
2021-01-20T16:26:43.4052721Z ##[debug]linkBuild=false
2021-01-20T16:26:43.4055095Z ##[debug]updateAssignedTo=Never
2021-01-20T16:26:43.4057593Z ##[debug]updateAssignedToWith=Creator
2021-01-20T16:26:43.4058005Z ##[debug]assignedTo=undefined
2021-01-20T16:26:43.4058289Z ##[debug]updateFields=undefined
2021-01-20T16:26:43.4060778Z ##[debug]bypassRules=true
2021-01-20T16:26:43.4064616Z ##[debug]failTaskIfNoWorkItemsAvailable=false
2021-01-20T16:26:43.4065002Z ##[debug]addTags=undefined
2021-01-20T16:26:43.4065278Z ##[debug]removeTags=undefined
2021-01-20T16:26:43.4068624Z ##[debug]Release.ReleaseId=4689
2021-01-20T16:26:43.4068946Z ##[debug]Release.DefinitionId=51
2021-01-20T16:26:43.4069183Z ##[debug]Release.DefinitionEnvironmentId=73
2021-01-20T16:26:43.4069412Z ##[debug]BuildId 13443
2021-01-20T16:26:43.4069644Z ##[debug]ProjectId xxxx
2021-01-20T16:26:43.4069841Z ##[debug]ReleaseId 4689
2021-01-20T16:26:43.4070067Z ##[debug]DefinitionId 51
2021-01-20T16:26:43.4070264Z ##[debug]DefinitionEnvironmentId 73
2021-01-20T16:26:43.4070487Z ##[debug]requestedFor xxxx
2021-01-20T16:26:43.4070834Z ##[debug]workitemsSource Build
2021-01-20T16:26:43.4071047Z ##[debug]workitemLimit 100
2021-01-20T16:26:43.4071274Z ##[debug]workitemsSourceQuery undefined
2021-01-20T16:26:43.4071474Z ##[debug]allWorkItemsSinceLastRelease false
2021-01-20T16:26:43.4071704Z ##[debug]workItemType Bug,Task,User Story
2021-01-20T16:26:43.4071902Z ##[debug]WorkItemState Testing
2021-01-20T16:26:43.4072147Z ##[debug]workItemCurrentState undefined
2021-01-20T16:26:43.4072341Z ##[debug]updateWorkItemKanbanLane undefined
2021-01-20T16:26:43.4072562Z ##[debug]WorkItemKanbanState undefined
2021-01-20T16:26:43.4072805Z ##[debug]WorkItemDone false
2021-01-20T16:26:43.4073372Z ##[debug]updateAssignedTo Never
2021-01-20T16:26:43.4073715Z ##[debug]updateAssignedToWith Creator
2021-01-20T16:26:43.4073925Z ##[debug]assignedTo undefined
2021-01-20T16:26:43.4074152Z ##[debug]addTags undefined
2021-01-20T16:26:43.4074348Z ##[debug]updateFields undefined
2021-01-20T16:26:43.4074564Z ##[debug]removeTags undefined
2021-01-20T16:26:43.4074758Z ##[debug]bypassRules true
2021-01-20T16:26:43.4074979Z ##[debug]failTaskIfNoWorkItemsAvailable false
2021-01-20T16:26:43.4075175Z ##[debug]Get WorkItemTrackingApi
2021-01-20T16:26:43.6390424Z ##[debug]Get workItemsRefs
2021-01-20T16:26:43.6404235Z Using Build as WorkItem Source
2021-01-20T16:26:44.2642696Z ##[debug]Loop workItemsRefs
2021-01-20T16:26:44.2650007Z ##[debug]Found WorkItemRef: 9885
2021-01-20T16:26:44.3997000Z Found WorkItem: 9885
2021-01-20T16:26:44.3998257Z ##[debug]Using workitem creator user "[object Object]" as assignedTo.
2021-01-20T16:26:44.4009686Z ##[debug]Updating  WorkItem: 9885
2021-01-20T16:26:44.4011107Z Updating WorkItem 9885
2021-01-20T16:26:44.4015172Z ##[debug]Found KanbanLane: 
2021-01-20T16:26:44.4016071Z ##[debug]Found KanbanColumn: 
2021-01-20T16:26:44.4018654Z ##[debug]Found KanbanColumnDone: 
2021-01-20T16:26:44.4021389Z Patch: /fields/System.State Testing
2021-01-20T16:26:44.4022626Z ##[debug]Start UpdateWorkItem
2021-01-20T16:26:45.8463696Z WorkItem 9885 updated
2021-01-20T16:26:45.8464695Z ##[debug]Finished loop workItemsRefs
2021-01-20T16:26:45.8466682Z ##[debug]task result: Succeeded
2021-01-20T16:26:45.8469877Z ##[debug]Processed: ##vso[task.complete result=Succeeded;]
@eiriksanderfjeld
Copy link

eiriksanderfjeld commented Apr 12, 2021

I experience similar behaviour, the log claims to be updating the work items, but it only partial works.

Using Release as WorkItem Source Found WorkItem: 9013 Updating WorkItem 9013 Patch: /fields/System.State Utvikling Patch: /fields/WEF_A0..._Kanban.Lane New functionality Patch: /fields/WEF_86..._Kanban.Column Development Patch: /fields/WEF_A0..._Kanban.Column Development Patch: /fields/WEF_86..._Kanban.Column.Done true Patch: /fields/WEF_A0..._Kanban.Column.Done true Linking Build 11060 to WorkItem 9013 Patch: /relations/- [object Object] Patch: /fields/System.Tags Release-56-dev Patch: /fields/System.History Deployed to Dev: https://dev.azure.com/.../_release?releaseId=2045&_a=release-summary WorkItem 9013 updated

There are for some reason two different column with Development name and two Done columns, but neither seems to be actually updated. The history part of the work items doesnt show any changes.

But, adding a connection to the build works. Which seems to be different from the others, since its not a patch request against the fields endpoint, but using the relations endpoint.

@Glebby
Copy link

Glebby commented May 17, 2021

The same here. The log is below. The item is linked to the build, but the status is not updated. This started about a month ago, before that it was working like a charm.

2021-05-17T15:44:43.9652474Z ##[section]Starting: Update work items
2021-05-17T15:44:43.9866821Z ==============================================================================
2021-05-17T15:44:43.9867187Z Task : WorkItem Updater
2021-05-17T15:44:43.9868242Z Description : This task adds functionality to update WorkItems during a Build or Release.
2021-05-17T15:44:43.9869102Z Version : 2.5.801
2021-05-17T15:44:43.9869569Z Author : Blue Basher
2021-05-17T15:44:43.9869972Z Help :
2021-05-17T15:44:43.9870312Z ==============================================================================
2021-05-17T15:44:44.9808383Z Using Build as WorkItem Source
2021-05-17T15:44:45.2321273Z Found WorkItem: 18473
2021-05-17T15:44:45.2340109Z Updating WorkItem 18473
2021-05-17T15:44:45.2350621Z Patch: /fields/System.State Ready For Testing
2021-05-17T15:44:45.2358701Z Linking Build 9881 to WorkItem 18473
2021-05-17T15:44:45.2359456Z Patch: /relations/- [object Object]
2021-05-17T15:44:45.4392313Z WorkItem 18473 updated
2021-05-17T15:44:45.4536667Z ##[section]Finishing: Update work items

@shermanjoshua
Copy link

I am currently having this issue as well. I have not ever had this up and working, but would love to get it running for board automation. Is there any special AZDO org/board configuration that I may be missing?

2021-07-19T15:04:37.9217767Z ##[section]Starting: WorkItem Updater
2021-07-19T15:04:37.9538910Z ==============================================================================
2021-07-19T15:04:37.9539654Z Task : WorkItem Updater
2021-07-19T15:04:37.9540118Z Description : This task adds functionality to update WorkItems during a Build or Release.
2021-07-19T15:04:37.9540487Z Version : 2.5.801
2021-07-19T15:04:37.9540716Z Author : Blue Basher
2021-07-19T15:04:37.9542351Z Help :
2021-07-19T15:04:37.9542664Z ==============================================================================
2021-07-19T15:04:39.9188264Z Using Build as WorkItem Source
2021-07-19T15:04:40.3720277Z Found WorkItem: 976
2021-07-19T15:04:40.3739108Z Updating WorkItem 976
2021-07-19T15:04:40.3755912Z Patch: /fields/System.State In Dev
2021-07-19T15:04:40.3756753Z Patch: /fields/WEF_E06B3420B38D4B92BFD6A711B80521F5_Kanban.Column In Dev
2021-07-19T15:04:40.3757196Z Linking Build 2352 to WorkItem 976
2021-07-19T15:04:40.3757555Z Patch: /relations/- [object Object]
2021-07-19T15:04:40.6306907Z WorkItem 976 updated
2021-07-19T15:04:40.6484447Z ##[section]Finishing: WorkItem Updater

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants