You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few weeks ago the associated PRs for our work items in our releasenotes report started becoming empty on occasion.
I think the underlying issue is that Azure DevOps for some reason, in the relations array under the list of workitems, started returning the url string with a lowercase "%2f" which causes the split statement in the
"lookup_a_pullrequest" function here to not work as expected. Just adding a toUpperCase() there should solve the issue I think.
Let me know if I can assist in anyway possible!
Repo Steps
Generate a releasenotes report that uses the lookup_a_pullrequest function to link workitems to pull request.
On some cases the PRs will not be associated with the workitems.
Expected Behavior
For the pull request to be linked to the workitem.
Azure DevOps Extensions
Generate Release Notes (Node Cross Platform)
Platform
Azure DevOps Services
Azure DevOps Server (TFS) Version
No response
Extension Version
No response
Describe the bug
A few weeks ago the associated PRs for our work items in our releasenotes report started becoming empty on occasion.
I think the underlying issue is that Azure DevOps for some reason, in the relations array under the list of workitems, started returning the url string with a lowercase "%2f" which causes the split statement in the
"lookup_a_pullrequest" function here to not work as expected. Just adding a toUpperCase() there should solve the issue I think.
Let me know if I can assist in anyway possible!
Repo Steps
Expected Behavior
For the pull request to be linked to the workitem.
Logging Information
Below is the handlebar template we are using:
Global list of WI with PRs, parents and children
{{#forEach this.workItems}}
{{#if isFirst}}### WorkItems {{/if}}
[{{this.id}}]({{replace this.url "_apis/wit/workItems" "_workitems/edit"}}) {{lookup this.fields 'System.Title'}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Pull Request')}}
{{#with (lookup_a_pullrequest ../../pullRequests this.url)}}
{{#forEach this.reviewers}}
{{/forEach}}
{{/with}}
{{/if}}
{{/forEach}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Parent')}}
{{#with (lookup_a_work_item ../../relatedWorkItems this.url)}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Parent')}}
{{#with (lookup_a_work_item ../../../../relatedWorkItems this.url)}}
{{/with}}
{{/if}}
{{/forEach}}
{{/with}}
{{/if}}
{{/forEach}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Child')}}
{{#with (lookup_a_work_item ../../relatedWorkItems this.url)}}
{{/with}}
{{/if}}
{{/forEach}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Tested By')}}
{{#with (lookup_a_work_item ../../testedByWorkItems this.url)}}
{{/with}}
{{/if}}
{{/forEach}}
{{/forEach}}
The text was updated successfully, but these errors were encountered: