TFS Where to list approval comments - tfs

I'm using Microsoft Visual Studio Team Foundation Server Version 15.112.26307.0.
Using the Releases page/view for a group of approvers to review and manually trigger the release from environment QA to environment PROD (first environment triggers automatically).
From that screen, the approver clicks the icon and then in "override" to approve and launch second environment... on that action (popup) it asks for a comment and the the user clicks the approve button which triggers the next release environment... until here, its the standard way from TFS....
I wanted to know if there is a way to list all releases that completed all environments, and on that list show who approved it and also the comment entered... is it possible to customize a view or create a whole new list querying that information? Its a information/audit list only... no need to take action from there... just summarize the information for review.
Thanks!

You can use Releases - Get Release API to get the information you want. Since you are using TFS 2017 Update 1 RTM, you could capture the rest api by pressing F12 in browser then select Network. Check the screenshot below:
I've tested the following api in Version 15.117.27414.0, and get the comments successfully:
Get
http://tfs2017:8081/tfs/{collection}/{project}/_apis/Release/releases/{releaseId}

Related

How to promote a Gerrit draft submission to a regular code-review submission

A colleague sent me a Gerrrit code review "draft" (I suppose via "refs/drafts/master" instead of "refs/for/master") and then left on holiday. Without downloading the patch and submitting it myself, how can I promote his draft to a full regular code-review so I can approve it & submit it for merging?
I think this is a similar question, but it's for git-review, not Gerrit. Also I'm interested in doing it from the Gerrit web GUI if at all possible. And I don't see a "Publish" button on my Gerrit web GUI for that draft. (And currently it doesn't say anything about merge conflicts, as long as I hurry....)
If I click on the "Patch Sets" link in the top right of the GUI, this is what I see:
In the top left it says "Change 58358 - Draft", and in the middle of the window it shows this:
Only the change owner can publish a draft patch set. Using the UI's cherry-pick option as described in other answers won't work because the cherry-pick implementation preserves the draft status on the new change or patch set.
As far as I know the only way to force the change into NEW state is to manually download the commit and push a new patch set using refs/for/master instead of refs/drafts/master.
Note that if you're not rebasing the change onto a new parent at the same time, you might need to slightly edit the commit message to make gerrit accept it. Otherwise it'll reject with no new changes.
If your colleague add you as reviewer, you can. You can cherry-pick this commit.
Click on download link at the right-top corner, and there are aliases for commands above.
But as you updated your question, you don't want to check out and manually push or cherry pick to master branch. You can use cherry-pick\merge button on ui, if you are confident in this mr, and it should be on master branch. Also you can publish this commit for other reviewers.
p.s. updated (you can cherry-pick, merge, publish via UI)
Do the following procedure:
1) Go to the draft change page
2) Click on Cherry Pick button
3) Write "master" in the Cherry Pick to Branch field
4) Adjust the Cherry Pick Commit Message if needed
5) Click on Cherry Pick Change button
It'll be created a NEW CHANGE cherry-picked from the draft change. Go to the new change page and follow the regular Gerrit process (review, approve, submit). The original draft change can be abandoned or deleted.

List all files attached to a user story

When DEV checks in files into TFS 2017 they tie that check in to a user story and I can see the changeset/s on the user stories. How can I run a query/report/sql command or use a program to see all the files that were changed for a user story?
Thank you
You can use TFS REST API to get the ArtifactLink:
Get http://TFS2017:8080/tfs/DefaultCollection/_apis/wit/workitems/{id}?$expand=All&api-version=3.2
Check the example of the api's response:

Auto assign to team lead/developer on bug reopen

In my implementation of JIRA, I have a custom field called Developer which gets populated automatically (username) whenever someone move the JIRA from Open to Fixed state. Now I want something similar for the Fixed to Reopen transition. That is, whenever the tester changes the status to Reopen, it should go back to the Developer or the Project Lead (in case the field isnt populated as the custom field can be overridden).
I tried to implement a post function, but there isn't a way where I can use OR criteria. Or is there a way?
You can do a Post Function on the transition using the Script Runner plugin if its a self-hosted JIRA instance which will allow you great flexibility in the logic to fill the target field in.
I finally managed to find a workaround for this.
Download the Workflow Enhancer for JIRA plugin (FREE). You would also need JIRA Suite Utilities (I had it installed already for some other customization)
In the Fixed to Reopen transition, add a Post Function and use Copy Value From Other Field to update Assignee from Developer field
Then add another Post Function underneath this where you need to use Universal Post Function. Here make the boolean condition as {Assignee}=="" and select Choose post function to execute: as Assign to Lead Developer
Publish the draft.

"System Test" for remote plugin?

I've been trying to follow http://devs.valence.desire2learn.com/2013/02/15/remote-plugins-the-bookwidget-sample-2 to make sure we can get the demo running before continuing with development, however we've run into the problem where the sample instructions given don't mention a "System Test Link", and d2l won't allow us to create the widget without one.
What is this, and how can this be solved?
Edit: The system the client is using is 10.1
Looks like the "community" decided that my additions to Sarah-Beth's answer were not appropriate. So here's my edited answer in it's entirety:
The System Test Link is not a required value in order to create a new Remote Plugin. This behavior has been verified against both Desire2Learn 10.1 and 10.2 environments.
A System Test Link value is required in order to run automated tests using the Test button on the Create a New Remote Plugin form. If you click the Test button without populating that field, you will be alerted that a value must be entered in the System Test Field in order to proceed. But this alert does not prevent you from creating your Remote Plugin by clicking Save.
The only required values for a new Remote Plugin are a launch point, a name, and a build type (course builder, widget).
Note. The UI for this management tool can be a bit confusing. When you enter your information and click Save, the tool's UX prompts the browser window to reset to the top of the displayed page: if your browser window is not long enough to contain the entire form, you will not see the little message above the Save button that tells you your configuration has changed, and there's no apparent change in the form's state. Accordingly, you may think that you haven't saved anything when, in fact you have.
Provide the config for your plugin, ensure you have a launch point, a name, and a build configuration selected (at least), and click Save. Once the browser resets the viewport to the top of the form's page, you should be able to click Cancel to back out of the form and see your new plugin in the list of plugins.
We are aware of the discomfort in this form and are taking steps to improve it's UX.
The System Test Link is not a required value in order to create a new Remote Plugin. This behavior has been verified against a Desire2Learn 10.2 environment.
A System Test Link value is required in order to run automated tests using the Test button on the Create a New Remote Plugin form. If you click the Test button without populating that field, you will be alerted that a value must be entered in the System Test Field in order to proceed. But this alert does not prevent you from creating your Remote Plugin by clicking Save.

team server foundation VS2010 setting up a workflow when task complete gets assigned to tester

I am very new to the whole team server foundation thing and I was hoping that you guys could point me in the right direction.
I have managed to successfully import a project from Microsoft Project 2010 into my VS 2010 tfs. Everything so far works great.
I was just wondering if it is possible to have a task that was completed by a developer to send a notification and assign a testing task to the tester.
In other words:
The developer completed his / her task.
The developer updates the task in TFS to “Completed”
The task gets assigned to the tester for testing.
Notification goes to tester of new task he / she must test.
Is this possible or must I manually assign the developers completed task to the tester for testing?. Or is it possible to set TFS up to automatically do this?
Any advice is greatly appreciated.
You can update the rule engine behind the work items. But how do you know the tester? I see two solutions.
Create a new field which has the tester in it. When the state is set to resolved the value of that field is copied to the AssignedTo.
Don't use the name of the tester but change the activity to Test when the state is changed to resolved.
In either way you can setup the work item alerts to get notified.
Resources:
Define Work Item Fields
Define and Customize Work Item Workflow
Set Personal or Team Alerts
Configure Email Notifications and Specify the SMTP Server

Resources