Lets say, in TFS 2013, age of a work item can be calculated by the number of days between Created Date and Resolved Date. I need to write such query in TFS portal and plot a chart against it. I know how to plot the chart but I have no idea how to write such query in portal as I see no way of doing this.
Any help?
No, you can't calculate one work item's age via using work item query. Instead, you need to first calculate work item age with reporting or TFS API, then create chart based on these available work item age data.
Also have a check on this link which discusses a similar issue: How to get the time between two TFS Work Item States in SSAS (or any other report)?
Related
I am new to TFS and know the basic concepts. In my case we have customized TFS a lot which contains around 17 collections, custom fields in work items etc.
I have some queries for which I require some answers. The questions might be generic, but any help or suggestions on the below queries would be great.
Following are my queries:
1.) Show Work Item ID in a specific format. Can it be done
2.) Auto Fill custom fields for a work item based on a category / linked bugs (analogous to Relative Path column type)
3.) While raising a WI through Visual Studio development tool, the datepicker only takes date value and not time. The same work items when raised through web portal the datepicker gives time value as well.
4.) Auto Fill the efforts spent in Child Work items (summation of all child link items in the parent)
5.) Reminders to be sent if iteration / scrum set date crossed. Also check for Work Items as well, if set date is crossed.
6.) Create Queries which can query across all collections / verticals. Currently queries can be made only against each entire collection, but not across all collections. Do we have any mechanism to query against multiple collections?
7.) Email alerts customizations in TFS.
8.) Can the collections be merged into 1 default collection.
I have tried to find few answers from my end as well, and would like to know, if it is correct.
1.) Work Item ID cannot be shown in a specific format as it is system generated
2.) For Auto Filling of Work Item fields, it cannot be done. Manual approach is the only way (unless there is a way to pre-populate fields
3.) One can only query for all projects in a single collection. But it is not possible to query against multiple collections and get the results.
So require assistance on the above queries and also validate the answers I have got for few of my questions.
Any help or suggestions or relevant links would be great.
Thanks In Advance!!!..
Please kindly check below inputs
You are right. This is by designed. You can not change to use other
format of work item.
Yes. This could not be done at present. It's still a user voice, but
on the Roadmap. Support for calculated fields and roll-ups.
Sorry, not get your point.You could use the DateTimeControl type to give users a calendar picker to select a date for a DateTime field. By using this control, you can quickly select a date and time for the field. For details.
You could do this from a sprint backlog or task board. Details
please take a look at our official tutorial here: Rollup of work
and other fields
We do not have this kind of build-in time reminder for work items.
However, as a workaround, There is a dashboard widget that uses #me
in its query.
You can also cobble something together using the REST API and a
scheduled build. Calling a work item query and sending email is
pretty easy from PowerShell.
No, they are using different database. You are only able to query
across team projects int the same project collection.
It's able to do this but with a little bit complicated. For detail
info, please take a look at this link: Customize TFS 2015 alert
email
There is no default way to do this. I do not think there is a
possibility of merging two TFS collections other than creating a new
collection, creating the team projects and use a tool such as TFS
integration tools to move the team projects from the source
collections.
As you can see, history will be rewritten with new dates, changeset
and work items ids etc, if you are trying to merge collections.
I want to select user stories with more than 5 bugs as children.
Using below query I can get user stories with at least one bug but filtering out the ones with less than 5 I'm lost.
How can I do this? Or is there any other way I can get this output? i.e: TFS extension
There is no build-in feature to count/filter linked work item's count of a specific work item type.
As a workaround, you could export tfs query results to Excel and manage the results in excel side. With the help of excel, you should be able to filter out those work items you needs.
Another way is using TFS API to get the work items and their linked work items with bug type, finally count the number of linked work items. About how to use API, please take a look at this related question: Retrieving work items and their linked work items in a single query using the TFS APIs
You can use in the query in "Related Link Count" field:
I'm using TFS 2013. In one field we have a Bug ID. It's a unique number and people often refer to it when working on projects (e.g., "Did you take care of bug 3456 yet?"). I know we get a Work Item ID with TFS (and that it is a unique number within a Team Project Collection), is there a way I can create a custom field that takes the first initial for the work item type and then attaches an the unique ID to it after? For example, for a bug it could be "B-3456" or for a task it could be "T-4242"? I'm just looking for a better way to way to organize ID numbers...
Work Item ID
The unique identifier that is assigned to a work item. Work item IDs
are unique across all team projects and within a team project
collection. Reference name=System.Id, Data type=Integer
If you want to change the work item ID from format "3456" to "B-3456". It's not able to do this, this ID is stored in TFS database and have various purposes such as work item query, TFS API and so on.
There is no easy Work Item Customization snippet you can apply to a new customize field to have it set to auto increment on save for a specific work item type. If you really want to do this, one way is follow Jesse Houwing's solution in this similar question.
And either in VS or in the web portal, it's easy to judge which work item type you are refer to. They have different icons or colors.
We are running visual studio team foundation server and today we are watching the number of active bugs on a dashboard. I would like to accompany this information with the number of new bugs added to the buglist each day.
I can't find any widget or anything in this area, is there anyone that have any idea how to track this?
You can easily create a cumulative flow chart that will show you the increase in tye number of bugs by day.
Create a query with the last 30 days of bugs by created date (#today-30). Then go to the Chart tab on the query and add a line chart. Tweek & pin it to your dasboard. Call it "30 day cumulative bug flow".
Another useful way to visualise this data would be to create a query for those bugs created in the last 24 hours, (#today-1) and pin it to your dashboard as a number. Call it "Incoming in last 24"
Unfortunately, there is no this kind of build-in feature.
You could use TFS Client API or REST API to query workitems and create the status report yourself.
Or you could set an optional reporting infrastructure. With this installed you can use the out of the box reports to do what you want:
Moreover, I also created an uservoice for you, TFS Admin will kindly review it, you could also vote up it to get more attention.
I´m trying to create a gadget for the Jira Dashboard that´s quite hard to accomplish.
I need to show a list of epics with time budget and the sum of time spent as columns.
The problem I´m facing is that the time logged is not made in the epics, but in the tasks or issues inside the epic (as I think it should be) and the column on "sum of time spent" is always empty.
This means, as I see it, that I have to be able to sum up the issues inside every epic and somehow show it in the empty column of the epic I need to see.
I created a filter and I´m calling it with the "filter results" jira dashboard gadget.
I tried with the Script Runner plugin and read the API it has, but still no idea how can that be done.
Is there any idea?
Thanks in advance for any advice.
I have looked for something exactly like this recently, and am surprised that JIRA doesn't have a way to do this out of the box.
Checkout Epic Sum Up. https://marketplace.atlassian.com/plugins/aptis.plugins.epicSumUp/cloud/overview It will solve the Time Budget question, but I don't know about a Time Logged solution.
See:
https://confluence.aptis.info/display/ESU/Time+Field
"How to search a Time Field by using JQL"
You might also find some useful features in the Tempo Addon.
https://tempoplugin.jira.com/wiki/display/TEMPO/Tempo%20Timesheets%20Documentation
Since you're looking to display something on a dashboard look under the Users Guide: Tempo gadgets area.
this works with the Plugin Timesheet
https://marketplace.atlassian.com/apps/294/timesheet-reports-and-gadgets?hosting=cloud&tab=overview
1) Add the Gadget to a JIRA-Dashboard
2) Edit the Gadget appropiately
but care that you
Group by: Epic Name
and choose for
Additional Fields: Original Estimate and Remaining Estimate
Consider to set Show Details: to No
This will look something like this:
(Remaining Estimate are the numbers Right from the Original Estimate-column )