Creating a report for linked work items...

We are using TFS 2012 and need to create a report (either excel or SSRS) that shows all the user stories under the current sprint and any linked child items across two projects. I can do this easily per project in VS and open it in excel but excel won't
let me copy/paste two projects work items in one spreadsheet. I tried searching and found a few suggestions but they don't seem to work.
TIA,
Vik

Hi Vik,  
Thanks for your post.
We suggest you create a such report using TFS API. Please refer to below code snippet:
            TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(new Uri("UrI"));
            tfs.EnsureAuthenticated();
            WorkItemStore workitemstore = tfs.GetService<WorkItemStore>();
            string wiql ="SELECT * FROM WorkItems WHERE [System.TeamProject] = 'TeamProject' ORDER BY [System.Id] ";
            WorkItemCollection wic = workitemstore.Query(wiql);
            foreach(WorkItem workitem in wic)
            if(workitem.Links.Count!=0)
                foreach (Link link in workitem.Links)
                    RelatedLink relatedLink = link as RelatedLink;
                    if (relatedLink != null)
                        Console.WriteLine(relatedLink.RelatedWorkItemId);
You can create your custom work item query to return all the parent work items, then save this query as a .wiq file in local path, then open this .wiq file and you will find the wiql string in it.
For more information about work item query TFS API, please refer to:
https://msdn.microsoft.com/en-us/library/bb130306.aspx.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • SSRS Report for Incidents/Work Items Created or Closed over time

    I'm curious if anyone has developed a custom report based off the DWDataMart that displays the count for creation of incidents or other work items over time or work items that are closed over time.

    Hi Jon,
    There is a blog, which talks about in detail regarding SCSM reporting,
    http://scug.be/scsm/2012/04/10/working-with-scsm-reporting/
    However related to your queries please refer to this,
    http://blogs.technet.com/b/servicemanager/archive/2010/04/23/how-to-create-a-custom-report-and-display-it-in-the-console.aspx
    Thanks,
    Mohammad.
    -Zakir, Let us know if the answer/post helps you :)

  • Query filter for linked work items by link type

    We are running TFS 2012. I am opening up my work item query in VS 2013 team explorer. I need to know how to write a query that allows me to filter OUT links of type "related" so that they don't show in the tree under the product backlog item in
    the sprint. Link Type is not one of the fields present in the query editor.
    Thanks.
    Stephanie

    Hi Stephanie,  
    Thanks for your post.
    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Link work items across collections, TFS 2012

    Hello,
    Is it possible to link work items across collections?  We have items reported in one collection which are triaged, routed to the correct department where a new bug is opened in the corresponding collection, then closed in the original collection.  We
    would like to have a direct link between the 2 items.  Is there an existing way to do this?
    Thanks 

    Hi Ajn,ny,  
    Thanks for your post.
    As EIKort said, TFS not support link work items in different collections. You need create new bug in the same collection, then create link between work items.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create a report for open sales orde documents which are not invoiced

    Hi Experts this is urgent,
    +pls give the Logic for document flow+
    My requirement is create a report for sales orders which are not invoiced  using the following table.
    VBAK : sales order header
    VBAP : sales order item
    VBFA : sales document flow
    VBUK for processing status
    KOMV for duties value and sales order value
    LIKP : delivery not header
    LIPS :delivery note item
    For information : In the header level the processing Status is indicated in the table VBUK field LFSTK for one sales order number. A,B , C are the possible entries.
    Case A : When a sales order is invoiced we can display information on the header status :
    Overall status : Completed  and display a invoice number in the document flow. When the items of the sales orders are invoiced the process status is the following :  Overall status       Completed            
    Delivery status      Fully delivered      
    Case B : An open sales order not delivered and not invoiced will have overall status : Open on the header and item level and will not have subsequent documents.
    Case C :
    When the items for the sales order are delivered but not invoiced the status will be u201Cfully deliveredu201D
    And the subsequent documents will be delivery notes and good issue if the delivery note is issued.
    With regards
    ravi
    Edited by: ravik ravik on Jun 25, 2008 3:29 PM

    Hello Ravi,
    U neednot develop any report..
    there is std report with txn V.02
    or copy this and make necessary changes.
    Reward, if helpful.
    Rgds,
    Raghu.

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

  • Classical Report for linking/applying the goods receipts transaction

    Classical Report for linking/applying the goods receipts transaction quantities against oldest schedule line item dates and then downloading the file to Excel.
    o        Classical Interactive Reports for calculating average Day Payable Outstanding. Option 1) in summary by company code, vendor, currency. (w/ DPO calc) Option 2) in detail (w/o DPO calc) Option 3) special summary by vendor and roughly convert different currency into one currency of choice, using current YEARLY rate.
    thow to do these objects
    plz assist me
    and how to transfer the data from from one server to other like 3.1 to 5.0
    plz assist me
    Edited by: Alvaro Tejada Galindo on Feb 21, 2008 5:28 PM

    Hi,
    You can use Call Transcation tcode
    for calling the transaction u can pass values to the transaction by using SET PARAMETER ID and GET PARAMETER ID
    technique.
    For downloading use function module LIST_DOWNLOAD
    or GUI_DOWNLOAD.

  • How can I activate drill down report for planned line items please urgent?

    Hi Everyone,
    Please suggest me how can i activate drill down report for planned line items in internal orders. S_ALR_87012993. Please suggest me, I'll award full points. I am unable to do it in client system, which has already line items. I tried in my sys with new config it is working.
    Kind regards
    Arvey.

    Hi
    It is based on the reports attached in the Report Group - TCODE: GR53
    In the Report Group screen
    Press CONFIGURE – This is to attach any Drill Down reports.
    Press the “Insert Line” icon
    As is the screen may be used to insert a Report Writer report group. To add an ABAP, press “other report type”
    Double click on “ABAP Reports”
    Enter the name of the ABAP and ENTER
    <b>RCOPCA08                       Profit Center: Plan Line Items</b>
    VVR

  • Authorization to disable SAP Inbox Forward function for specific Work Items

    Hi.
    I recently solved a case for a customer of mine regarding authorizations for work items. They have several workflows running, but for this specific custom developed workflow, users should not be allowed to use the SAP Inbox Forward button.
    I started by creating a new task classification (Z_FW) which I implemented on the workflow tasks where the forward functionality should be disabled. Now for test purposes I created a dummy user which I initially gave only authorization to the tcode SBWP, then I manually added the authorization object S_WF_WI.
    For this entry I allowed all activities for work item type W and F for classification 1, 2, 3 and NO_CLASS (SAP Standard classification).
    Now to my understanding this would give the test user authorization to perform all activities on Work Items and Workflows which are classified with one of the above, but also prevent me from doing anything with Workflows and Work Items with classification Z_FW.
    However, to my surprise everything seems to work perfectly with just this entry. I am able to execute and forward work items with the standard classification, while I am able to execute, but not forward, work items with classification Z_FW.
    My intention was to add another entry for authorization object S_WF_WI, for classification Z_FW with all activities except forwarding. But when I tried that, the only change was that forwarding was enabled for the work items with classification Z_FW, which I didnu2019t want.
    Now can anyone explain to me why this is working? I am not too familiar with SAP Authorization as my area is mainly ABAP and WF, but his just does not seem logical.
    Hoping someone can give me an explanation....
    Thanks

    Does the standard function not do what you want?
    Task -> Additional data -> Agent Assignemt -> Maintain -> Attributes -> Forwarding not allowed.

  • Report for deleted line-items in Transfer Orders

    Dear All,
    Please help me in writing the code for "Report for deleted line-items in Transfer Orders".
    regards,
    nishu

    Thanks. Repor completed.

  • How to create ABAP Query for vendor open items

    HI,
    My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.

    Hello,
    Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
    For Query you can use SQ01.
    USE BSID & BSAD for AR open/clear items...
    LFA1, LFB1 are vendor master data tables
    This is FYI
    Hope this helps.
    Rgds
    Rajendra

  • How to create matreial document for ten line items (10 documents) by BAPI

    Hi
    how to create matreial document for ten line items (10 documents) by BAPI_goodsmvt_create
    i created but it gives error as "no ites were transferre
    and i need code also.
    thanks in advance

    Prabhu Peram wrote:>
    > >
    Gareth @ Atos Origin UK wrote:
    > > Prabhu,
    > >
    > > You have been on SDN a long time and have a decent amount of points - why do you feel the need to simply cut and paste standard SAP documentation? _-----> I least bother abt the Points, and i never ask somebody to give points to me , if u have any doubt on it , u can check all my postings ? All it does is fill up the SDN servers with replicated data which the original poster could quite easily access themselves via SE37----> Sorry I have seen ur Posting/Reply,dont assume that i do copy & paste for sake of Points.Njoy SAP.>
    > > Gareth.
    >
    >
    >
    > regards
    > Prabhu
    Prabhu.
    I didn't question you about points at all - I was making the point that you have been on SDN a long time and have a lot of points.  Therefore you should know better than to simply cut and paste standard SAP help.  If you don't copy and paste for sake of points, what do you do it for?  It serves no purpose other than to fill up the servers here on SDN.  The original poster appears to have access to a SAP system and SE37 and wants to know how to call a BAPI - they can easily go to SE37 and read the documentation themselves.  Posting it here just adds noise and makes searching harder, as well as taking up more and more space on SDN servers.
    Gareth.

  • View Memo option for a work item

    Hello,
    I am trying to include the "View Memo" option for a couple of different work items in UWL under the "You can also" section.
    The View Memo shows up fine for one work item and doesn't show up for the other. However I have similar UWL configuration for both items.
    Can any one suggest what is needed to include the View Memo option. I thought that the following tag should do it:
    <Action reference="viewMemos"/>
    The View Memo does not work for the following item: (Does not show up):
    <ItemType name="uwl.task.webflow.decision.TS20000131.ECCCLNT200" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm" executionMode="default">
          <ItemTypeCriteria systemId="ECCCLNT200" externalType="TS20000131" connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
              <Attribute name="TripNumber" type="string" displayName="Trip Number"/>
              <Attribute name="EmployeeNumber" type="string" displayName="Employee Number"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action reference="viewMemos"/>
           <Action reference="addMemo"/>
            <Action reference="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm"/>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.ApproveTrip" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="decisionKey" value="1"/>
              </Properties>
              <Descriptions default="Approve Trip"/>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.SendBackTrip" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="mandatory"/>
                <Property name="decisionKey" value="2"/>
              </Properties>
              <Descriptions default="Send Trip Back for Corrections"/>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.RejectTrip" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="mandatory"/>
                <Property name="decisionKey" value="3"/>
              </Properties>
              <Descriptions default="Reject Trip"/>
            </Action>
          </Actions>
        </ItemType>
    The View Memo option works fine for the following UWL item: (shows up fine)
    <ItemType name="uwl.task.webflow.TS20000189.ECCCLNT200" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="ECCCLNT200" externalType="TS20000189" connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
              <Attribute name="TripNumber" type="string" displayName="Trip Number"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action reference="viewMemos"/>
            <Action reference="addMemo"/>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,directories=no">
              <Properties>
                <Property name="WebDynproApplication" value="FITE_EXPENSES"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,directories=no"/>
                <Property name="DynamicParameter" value="WI_ID=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="SAP_FITV_TRIPNO" value="${item.TripNumber}"/>
                <Property name="SAP_FITV_ACTION" value="CHG"/>
                <Property name="System" value="SAP_ECC_HumanResources"/>
                <Property name="WebDynproNamespace" value="sap"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default="Correct Trip"/>
            </Action>
          </Actions>
        </ItemType>
    Can anyone suggest what is the difference between the above two tasks.
    Thank You,
    Jaya R

    Hi Jaya,
    The reason why you are seeing this with the first task is because you are using the action handler UserDecisionHandler, more specifically UserDecisionNote.  This is what defines the memo box.  You can see the other workitem is not of type decision and is not using the UserDecisionHandler, therefore you can't just add a memo box.  If you want to add a memo box to the other workitem, you will need to configure it like the first and check the decisions also in the backend system through the function module: SAP_WAPI_DECISION_READ or SWK_DECISION_READ.  You can find more information here:
    http://help.sap.com/saphelp_nw70/helpdata/en/7a/df014b037141ca9afc6433ed42b519/content.htm
    Best Regards,
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • How to create menu function for link to open file

    Hi,
    I need help how to create menu function for link to access file and allow user to save the file when click on it.
    The file will keep inside server.
    Thank you.
    Regards,
    Wilson

    I need help how to create menu function for link to access file and allow user to save the file when click on it.
    The file will keep inside server.AFAIK, you have to write a custom code to achieve this and Oracle does not provide this functionality.
    If you want to store the file as an attachment, please see (How to Store Image/PDF Attachments on the File System in 11i and R12 (like Attachment File Directory) [ID 294525.1]).
    Thanks,
    Hussein

  • Pls help out me to create a report for entry tax

    hi all,
                  pls help out me to create a report for entry tax.
                    and give some logic how i can do this.
    thanks and regards
      vikas

    SELECT < Columns>
    from pay_payroll_actions ppa,
    pay_all_payrolls_f papf,
    per_time_periods ptp
    where papf.payroll_id = ppa.payroll_id
    and ppa.effective_date between papf.effective_start_date and papf.effective_end_date
    and ppa.action_type IN ('Q','R')
    and ptp.payroll_id = papf.payroll_id
    and papf.payroll_name = :pPayrollName
    and ppa.date_earned BETWEEN ptp.start_date AND ptp.end_date
    and :pDate BETWEEN ptp.start_date AND ptp.end_date
    Pass Any Date and Payroll Name. The query should list down all payroll runs in the period in which the date falls.

Maybe you are looking for