I have setup an alert on our TFS server attached to the Work Item Changed event using Alerts Explorer. The only clause I have in the alert has a field of Iteration ID and an operator of Changes. My filter expression is :
"ChangedFields/IntegerFields/Field[ReferenceName='System.IterationId']/OldValue" <> "ChangedFields/IntegerFields/Field[ReferenceName='System.IterationId']/NewValue"
However, when I change the Iteration of a work item I never receive an email. Other alerts based on the Work Item Changed event on the same server are coming through with no problem.
I 'm not sure what "Iteration ID" stands for, but when you change the "Iteration" in your work item, then "Iteration Path" gets surely changed.
So reform your clause for "Iteration Path" instead:
"CoreFields/StringFields/Field[ReferenceName='System.IterationPath']/NewValue" under '\'
This corresponds to a configuration like this:
Related
In DevOps, I need a field which can be a counter and get incremented +1 whenever the work item state change from "Done" to "In progress". I tried to have an integer field and set the Rule as mentioned below
condition: when a work item state changes From "Done" to "In Progress"
Action: Set the value of "Field" to "+1".
This rule is changing the value of the counter from 0 to 1 for the very first time only. However the counter does not keep incrementing whenever I change the work Item state from "Done" to "In progress"
Please suggest me an approach to do it.
I have a similar use case: counting the amount of times a work item fails testing (gets moved back from Resolved to Active). Since I don't need a true increment, just want an indication whether this has happened once, twice, thrice or more, I made a couple of rules, one for each increment, like this:
It won't help in any increment scenario, but possibly it helps some people.
Azure Devops does not support increments. You can try to use:
TFS Aggregator (Web Service).
Create rules with Azure Logic App. It contains triggers and methods to update work items.
Create a custom application. Add field like "Need Increment" with default value "false". Create Rule - condition: when a work item state changes From "Done" to "In Progress" Action: Set the value of "Need Increment" to "true". Your custom application updates you increment field and set "Need Increment" to "false".
Is it possible to create a TFS alert that notifies the user when the results of a certain query has changed?!
Example:
I have a query which finds 10 work items as a result
one of those work items has changed that it does not fulfill this query anymore (query results should be 9).
I would like a notification telling me that the results of the query has changed (also referring to the work item that has changed)
The other way around should be also valid, that a work item was modified to fulfill the query (query results should be 11).
You can try CatLight status notifier. It will show a notification on the desktop new work item matches the query or when this work item changes.
In addition, if you miss that notification, you can always see what changed on the dashboard:
The app currently will not notify you when work item stops matching the query, but you can create an inverse query to catch such changes.
There is no way to do this directly.
You may want to try creating a Notification, but you are going to struggle if your query is complicated.
https://[youraccount].visualstudio.com/_notifications
Is there a field in TFS or any way to get the datetime value on which a sprint backlog task was changed to done?
I spotted an AuthorizedDate field but I'm not sure if it's out of the box or not.
Suggestions will be appreciated.
It is possible to get TFS to do this for you if your template isn't already set up to do so.
Start the TFS Process editor (Install TFS power tools if needed), connect to TFS and edit the WIT Task.
Create a new field called (For Example) CompletedDate with a suitable reference name (For example: StackOverFlow.Questions.TaskCompletedDate).
Set it to be of type DateTime.
Next go to the workflow tab and do the following for each of the transitions to the done state:
Right Click, select open details
Select the fields tab, click new.
Enter the reference name of the field you create above (StackOverFlow.Questions.TaskCompletedDate).
Select the Rules Tab and click new.
Select SERVERDEFAULT from the list of rules
On the dialog that appears, set the from field to clock.
Click OK, OK, OK to get back to the workflow.
Save the Work Item Definition.
See:
https://msdn.microsoft.com/en-us/library/ms194981.aspx
When your work item is set to done the closed date and closed by fields are set automatically.
These fields are part of all of the default templates.
Some of the older 2012 & 2013 templates did not include this for tasks and you would have to adds it', however you should use the out of the box provided fields and not create new ones. If you are reporting in this it's a nightmare if each work item type had its own way of doing things. Use the System.ClosedDate and System.ClosedBy field. You can copy the setup from the PBI or Bug work items..
Once I've finish working on an item and it is assigned to someone else, it exits my queries scope and I can't find it anymore. Sometimes I just need to make a quick look up on items that went through me and recognize an old bug by description or date.
Is there a query like that by default in TFS2010 ?
How else can I search bugs that have me in their history flow?
Yes you can. There is an "Was Ever" operator for the "Assigned To" field. This will allow you to query any work item that was ever assigned to you. The same operator exists on the "Changed By" field.
We have a few bugs and change requests which have a complicated iteration path. This results in people coming over the team to ask 'Where do we raise items' a lot.
As you can't set a default value for the iteration path in TFS 2010 we think the best solution would be to add a string of text under the field which we can manually update every 7 weeks with the correct area to raise items in.
However TFS doesn't seem to allow just a line of text on its work items as a control. Is there a way to add a line of display text i.e. Not a field you edit, but just to inform those writing the items?
Please note that it needs to be visible at all times, using the tooltip 'help text' field on a control is not enough in this case.
You can use the LabelControl for this purpose.
You can not have a default in the work item for the iteration path, but what you can do is making use or the template url in web access or the work item templates in the power tools to create a work item that is prepopulated with values.
What about a custom field with a display control in read-only? You can give a default value to the field and the "read-only" control prevent other to change it.