Create One-to-Many Work Item Links Programmatically in TFS 2013

Hello,
I urgently require some help with this problem please.
I have a number of existing work item types - for illustration purposes, let's call them Work Item Parents and Work Item Children. Remaining details are as follows:
I have thousands of Work Items of type Parents
I have hundreds of Work Items of type Children
The Work Item Parents have a One to Many relationship with the Work Item Children
Both Work Item types have already been added to TFS and we now need to associate or link Parent items with their corresponding Child items.
Due to the sheer number of items described above, linking the  Parent items with their respective Child items would be a complete "No-No" as it could take forever to complete and would be prone to error.
What I'm therefore seeking is the ability to programmatically associate or link the two work item types where required.
Any advice on how to achieve this would therefore be greatly appreciated.
Thank you.
PS: The link type between my work item types do not necessarily have to be of a Parent-Child relationship. "Related" work items will do just fine.

Hi RegManteaw,  
Thanks for your reply.
We can get the wanted Bug work items and Task work items using
WorkItemCollection, you should use the logic code to handle which Task work items linked to which Bug work item. For example, I defined 5 Bug work items within “b1” tag, and 10 Task work items within “t1” in my test
team project, then I run the below code snippet to get that Bug/Task work items and link 2 Task work items to one Bug work item.
TfsTeamProjectCollection tfs =
new
TfsTeamProjectCollection(new
Uri("collectionURL"));
tfs.EnsureAuthenticated();
WorkItemStore workitemstore = tfs.GetService<WorkItemStore>();
try
// get “b1” bug work items(5) from test team project
string wiql =
"SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = 'teamprojectname' 
AND  [System.WorkItemType] = 'Bug'  AND 
[System.Tags] CONTAINS 'b1'";
WorkItemCollection Bwic = workitemstore.Query(wiql);
// get “t1” task work items(10) from test team project
string wiql2 =
"SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = 'teamprojectname' 
AND  [System.WorkItemType] = 'Task' AND 
[System.Tags] CONTAINS 't1'";
WorkItemCollection Twic = workitemstore.Query(wiql2);
//two task work items linked to one bug work item
for(int
i =0;i<=4;i++)
//define the link type
WorkItemLinkTypeEnd linkTypeEnd = workitemstore.WorkItemLinkTypes.LinkTypeEnds["Related"];
//link first task to bug
Bwic[i].Links.Add(new
RelatedLink(linkTypeEnd, Twic[(i * 2)].Id));
         Bwic[i].Save();
//link second task to bug
Bwic[i].Links.Add(new
RelatedLink(linkTypeEnd, Twic[(i * 2 + 1)].Id));
Bwic[i].Save();
catch(Exception
e)
Console.WriteLine(e.Message);
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

  • How to create one-to-many form

    I have a database that has one-to-many relations. Could
    someone give me a good exmaple of how to create a WEB FORM (using
    php) that would allow me to for example enter the Name, and then
    below ADD as many names of children of this person (each as a
    seperate record) as I want, and then sumbit it all together. I have
    been strugling with it for a long time, it Access it was so easy,
    have no clue how to coded it here. Thank you for anyone;s
    response.

    Get Dreamweaver Developer Toolkit

  • The work item linked to bsp application can not be executed in CRM webUI

    Hi all,
        1. i have configured workflow in SAP GUI. And i have linked one activity to bsp application(link to the task with bo WEBSERVICE and method PROCESSDIALOG).
        2. When i start the workflow and click the workitem in workflow inbox, then the bsp page will pop up.
        3. In CRM webUI, you can find all the workitems under CRM webUI worklist as the same as SAP GUI. And when i execute the workitem in webUI. a error appears as 'Dynamic navigation for object WEBSERVICE and action F not supported'.
    In a word i want to link my customized bsp application with wokitem in CRM webUI .
    any suggestion ? ths

    Frankly, I am not aware of CRMGUI but  in general, the way we assign is
    1. Initially we define a external service ( WF_EXTSRV).
    2. Then by using that definiton we'll create a task.
    3. The task created in the second step, we use in the workflow.
    4. Now when ever any user tries to execute the workitem then it directly opens the BSP application.
    Before doing all the above steps one should make sure that the service is ACTIVE in SICF txn, and what ever the parameters that are required to pass the BSP application must be defined in the WF_EXTSRV.
    IF you want the workitem to appear in the UWL you need to register the task in SWFVISU txn with the visualization parameters  APPLICATION. and the task as BSP standard application.

  • How to create one to many relation database based on existing Tables?

    Let say I have got 10 tables. Out of these 10 tables one table is used to navigate to other tables and at the some time providing some useful information. Therefore other 9 Tables have the identical structure.
    The question is, how can I convert these 10 tables into 2 tables, ie each row of first table correspond to the different data of the other table (one to many relation)?

    Hello,
    >>The question is, how can I convert these 10 tables into 2 tables, ie each row of first table correspond to the different data of the other table (one to many relation)?
    I do not quite understand what you ask and I doubt if Entity Framework supports this scenario, since you mentions these tables already exist, after importing them to the designed windows, we cannot modify them or it would throw an error shows the database
    and model is mismatched.
    Regards.
    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.

  • Want to Create one PO for multiple Items ..........?

    HI Guy's,
    I am creating PO thorough  Bapi.
    It is also successfully ......
    But here I am not  able to create multiple ITEMS as in transaction ME22 for creating PO.
    For that what can I do ..........
    Greeting's of he Day.
    Ankit Singh Rathore

    hi,
    check this...
    *&      Form  CREATE_PO
          Creating PO
    -->  p1        text
    <--  p2        text
    FORM CREATE_PO .
    DATA: HEAD LIKE BAPIMEPOHEADER,
           HEADX LIKE BAPIMEPOHEADERX,
           ITEM LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
           ITEMX LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
           SCHEDULE LIKE BAPIMEPOSCHEDULE OCCURS 0 WITH HEADER LINE,
           SCHEDULEX LIKE BAPIMEPOSCHEDULX OCCURS 0 WITH HEADER LINE,
           CONDITION LIKE BAPIMEPOCONDHEADER OCCURS 0 WITH HEADER LINE,
           CONDITIONX LIKE BAPIMEPOCONDHEADERX OCCURS 0 WITH HEADER LINE,
           RETURNS LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
           POPARTNER LIKE BAPIEKKOP OCCURS 0 WITH HEADER LINE.
    DATA: V_EKGRP TYPE MARC-EKGRP.
    DATA: BEGIN OF IT_WRITE OCCURS 0,
           MESSAGE LIKE BAPIRET2-MESSAGE,
           END OF IT_WRITE.
    DATA: V_EKORG TYPE EKORG.
    DATA: V_MAKT LIKE MAKT-MAKTX.
    DATA: V_MEINS TYPE MEINS.
    DATA: V_REMANT TYPE MATNR,
           V_LINT TYPE MATNR,
           V_LDESC TYPE MAKTX,
           V_RDESC TYPE MAKTX,
           V_LMEINS TYPE MEINS,
           V_RMEINS TYPE MEINS,
           V_LMENGE TYPE ZMENGE,
           V_RMENGE TYPE ZMENGE.
      CONCATENATE ZMMHGAGREMENT-MATNR+0(9) 'L' INTO V_LINT.
      CONCATENATE ZMMHGAGREMENT-MATNR+0(9) 'W' INTO V_REMANT.
      SELECT SINGLE MEINS FROM MARA INTO V_MEINS WHERE MATNR = ZMMHGAGREMENT-MATNR.
      SELECT SINGLE DCODE FROM ZMMDYNCODE INTO V_MAKT WHERE MATNR = ZMMHGAGREMENT-MATNR
                                                        AND ZYEAR = ZMMHGAGREMENT-PYEAR
                                                       AND SEASON = ZMMHGAGREMENT-PSEASON.
      IF SY-SUBRC NE 0.
      SELECT SINGLE MAKTX FROM MAKT INTO V_MAKT WHERE MATNR = ZMMHGAGREMENT-MATNR.
      ENDIF.
    SELECT SINGLE EKORG FROM T001W INTO V_EKORG WHERE WERKS = I_PPLANT.
    V_BUKRS = ZMMHGAGREMENT-PPLANT+0(1).
    CONCATENATE ZMMHGAGREMENT-PPLANT+0(1) '011' INTO V_BUKRS.
      V_CHAR = V_BUKRS+0(2).
      V_EKORG = V_BUKRS.
      CONCATENATE V_CHAR '0' INTO V_EKGRP.
    *POHEAD
       HEAD-COMP_CODE = V_BUKRS.
       HEAD-DOC_TYPE = 'ZREG'.
       HEAD-VENDOR = V_LIFNR.
       HEAD-PURCH_ORG = V_EKORG.
       HEAD-PUR_GROUP = V_EKGRP.
       HEAD-DOC_DATE = ZMMHGAGREMENT-ZDATE. "I_ADATE.
       HEADX-COMP_CODE = 'X'.
       HEADX-DOC_TYPE = 'X'.
       HEADX-VENDOR = 'X'.
       HEADX-PURCH_ORG = 'X'.
       HEADX-PUR_GROUP = 'X'.
       HEADX-DOC_DATE = 'X'.
    *POITEM
        ITEM-PO_ITEM = '10'.
        ITEM-MATERIAL = ZMMHGAGREMENT-MATNR..
        ITEM-SHORT_TEXT = V_MAKT.
        ITEM-PLANT = ZMMHGAGREMENT-PPLANT.
        ITEM-QUANTITY = ZMMHGAGREMENT-MENGE.
        ITEM-PO_UNIT = V_MEINS.
        ITEM-NET_PRICE = ZMMHGAGREMENT-NETPR.
        ITEM-BATCH = ZMMHGAGREMENT-BATCH.
        ITEM-TAX_CODE = 'V0'.
        ITEM-INFO_UPD = ' '.
        APPEND ITEM.
        ITEMX-PO_ITEM = '10'.
        ITEMX-PO_ITEMX = 'X'.
        ITEMX-SHORT_TEXT = 'X'.
        ITEMX-MATERIAL = 'X'.
        ITEMX-PLANT = 'X'.
        ITEMX-QUANTITY = 'X'.
        ITEMX-PO_UNIT = 'X'.
        ITEMX-NET_PRICE = 'X'.
        ITEMX-BATCH = 'x'.
        ITEMX-TAX_CODE = 'X'.
        ITEMX-INFO_UPD = 'X'.
        APPEND ITEMX.
    *ZPAYMENT-PAYMENT
    *SCHEDULE
        SCHEDULE-PO_ITEM = '10'.
        SCHEDULE-DELIVERY_DATE = ZMMHGAGREMENT-RDATE.
        SCHEDULE-QUANTITY = ZMMHGAGREMENT-MENGE..
        APPEND SCHEDULE.
        SCHEDULEX-PO_ITEM = '10'.
        SCHEDULEX-PO_ITEMX = 'X'.
        SCHEDULEX-DELIVERY_DATE = 'X'.
        SCHEDULEX-QUANTITY = 'X'.
        APPEND SCHEDULEX.
    CONDITIONS
        CONDITION-ITM_NUMBER = '10'.
        CONDITION-COND_TYPE  = 'P001'.
        CONDITION-COND_VALUE = ZMMHGAGREMENT-NETPR..
        CONDITION-CURRENCY = 'INR'.
        APPEND CONDITION.
        CONDITIONX-ITM_NUMBER = '10'.
        CONDITIONX-ITM_NUMBERX = 'X'.
        CONDITIONX-COND_TYPE  = 'X'.
        CONDITIONX-COND_VALUE = 'X'.
        CONDITIONX-CURRENCY = 'X'.
        APPEND CONDITIONX.
    IF ZMMHGAGREMENT-MATNR+9(1) = 'K'.
    *POITEM
          V_RDESC TYPE MAKTX,
          V_LMEINS TYPE MEINS,
          V_RMEINS TYPE MEINS.
    SELECT SINGLE MEINS FROM MARA INTO V_LMEINS WHERE MATNR = V_LINT.
    SELECT SINGLE MAKTX FROM MAKT INTO V_LDESC WHERE MATNR = V_LINT.
    V_LMENGE = ( ( ZMMHGAGREMENT-MENGE * 50 ) / 100 ).
        ITEM-PO_ITEM = '20'.
        ITEM-MATERIAL = V_LINT.
        ITEM-SHORT_TEXT = V_LDESC.
        ITEM-PLANT = ZMMHGAGREMENT-PPLANT.
        ITEM-QUANTITY = V_LMENGE.
        ITEM-PO_UNIT  = V_LMEINS.
        ITEM-NET_PRICE = ZPPPRDPOLICY-LRATE."ZMMHGAGREMENT-NETPR.
        ITEM-BATCH = ZMMHGAGREMENT-BATCH.
        ITEM-TAX_CODE = 'V0'.
        ITEM-INFO_UPD = ' '.
        APPEND ITEM.
        ITEMX-PO_ITEM = '20'.
        ITEMX-PO_ITEMX = 'X'.
        ITEMX-SHORT_TEXT = 'X'.
        ITEMX-MATERIAL = 'X'.
        ITEMX-PLANT = 'X'.
        ITEMX-QUANTITY = 'X'.
        ITEMX-PO_UNIT = 'X'.
        ITEMX-NET_PRICE = 'X'.
        ITEMX-BATCH = 'x'.
        ITEMX-TAX_CODE = 'X'.
        ITEMX-INFO_UPD = 'X'.
        APPEND ITEMX.
    *ZPAYMENT-PAYMENT
    *SCHEDULE
        SCHEDULE-PO_ITEM = '20'.
        SCHEDULE-DELIVERY_DATE = ZMMHGAGREMENT-RDATE.
        SCHEDULE-QUANTITY = V_LMENGE.
        APPEND SCHEDULE.
        SCHEDULEX-PO_ITEM = '20'.
        SCHEDULEX-PO_ITEMX = 'X'.
        SCHEDULEX-DELIVERY_DATE = 'X'.
        SCHEDULEX-QUANTITY = 'X'.
        APPEND SCHEDULEX.
    CONDITIONS
        CONDITION-ITM_NUMBER = '20'.
        CONDITION-COND_TYPE  = 'P001'.
        CONDITION-COND_VALUE = ZPPPRDPOLICY-LRATE.
        CONDITION-CURRENCY = 'INR'.
        APPEND CONDITION.
        CONDITIONX-ITM_NUMBER = '20'.
        CONDITIONX-ITM_NUMBERX = 'X'.
        CONDITIONX-COND_TYPE  = 'X'.
        CONDITIONX-COND_VALUE = 'X'.
        CONDITIONX-CURRENCY = 'X'.
        APPEND CONDITIONX.
    ADDING REMNANT TO PO IF REMNANT VALUE IS MAINTAINED IN PO
    IF NOT ZPPPRDPOLICY-RCENT IS INITIAL.
         SELECT SINGLE MEINS FROM MARA INTO V_RMEINS WHERE MATNR = V_REMANT.
         SELECT SINGLE MAKTX FROM MAKT INTO V_RDESC WHERE MATNR = V_REMANT.
         V_RMENGE = ( ( ZMMHGAGREMENT-MENGE * ZPPPRDPOLICY-RCENT ) / 100 ).
        ITEM-PO_ITEM = '30'.
        ITEM-MATERIAL = V_REMANT.
        ITEM-SHORT_TEXT = V_RDESC.
        ITEM-PLANT = ZMMHGAGREMENT-PPLANT.
        ITEM-QUANTITY = V_RMENGE.
        ITEM-PO_UNIT  = V_RMEINS.
        ITEM-NET_PRICE = ZPPPRDPOLICY-RRATE."ZMMHGAGREMENT-NETPR.
        ITEM-BATCH = ZMMHGAGREMENT-BATCH.
        ITEM-TAX_CODE = 'V0'.
        ITEM-INFO_UPD = ' '.
        APPEND ITEM.
        ITEMX-PO_ITEM = '30'.
        ITEMX-PO_ITEMX = 'X'.
        ITEMX-SHORT_TEXT = 'X'.
        ITEMX-MATERIAL = 'X'.
        ITEMX-PLANT = 'X'.
        ITEMX-QUANTITY = 'X'.
        ITEMX-PO_UNIT = 'X'.
        ITEMX-NET_PRICE = 'X'.
        ITEMX-BATCH = 'x'.
        ITEMX-TAX_CODE = 'X'.
        ITEMX-INFO_UPD = 'X'.
        APPEND ITEMX.
    *ZPAYMENT-PAYMENT
    *SCHEDULE
        SCHEDULE-PO_ITEM = '30'.
        SCHEDULE-DELIVERY_DATE = ZMMHGAGREMENT-RDATE.
        SCHEDULE-QUANTITY = V_RMENGE.
        APPEND SCHEDULE.
        SCHEDULEX-PO_ITEM = '30'.
        SCHEDULEX-PO_ITEMX = 'X'.
        SCHEDULEX-DELIVERY_DATE = 'X'.
        SCHEDULEX-QUANTITY = 'X'.
        APPEND SCHEDULEX.
    CONDITIONS
        CONDITION-ITM_NUMBER = '30'.
        CONDITION-COND_TYPE  = 'P001'.
        CONDITION-COND_VALUE = ZPPPRDPOLICY-RRATE.
        CONDITION-CURRENCY = 'INR'.
        APPEND CONDITION.
        CONDITIONX-ITM_NUMBER = '30'.
        CONDITIONX-ITM_NUMBERX = 'X'.
        CONDITIONX-COND_TYPE  = 'X'.
        CONDITIONX-COND_VALUE = 'X'.
        CONDITIONX-CURRENCY = 'X'.
        APPEND CONDITIONX.
    ENDIF.
    ELSE.
    IF NOT ZPPPRDPOLICY-RCENT IS INITIAL.
    SELECT SINGLE MEINS FROM MARA INTO V_RMEINS WHERE MATNR = V_REMANT.
         SELECT SINGLE MAKTX FROM MAKT INTO V_RDESC WHERE MATNR = V_REMANT.
         V_RMENGE = ( ( ZMMHGAGREMENT-MENGE * ZPPPRDPOLICY-RCENT ) / 100 ).
        ITEM-PO_ITEM = '20'.
        ITEM-MATERIAL = V_REMANT.
        ITEM-SHORT_TEXT = V_RDESC.
        ITEM-PLANT = ZMMHGAGREMENT-PPLANT.
        ITEM-QUANTITY = V_RMENGE.
        ITEM-PO_UNIT  = V_RMEINS.
        ITEM-NET_PRICE = ZPPPRDPOLICY-RRATE."ZMMHGAGREMENT-NETPR.
        ITEM-BATCH = ZMMHGAGREMENT-BATCH.
        ITEM-TAX_CODE = 'V0'.
        ITEM-INFO_UPD = ' '.
        APPEND ITEM.
        ITEMX-PO_ITEM = '20'.
        ITEMX-PO_ITEMX = 'X'.
        ITEMX-SHORT_TEXT = 'X'.
        ITEMX-MATERIAL = 'X'.
        ITEMX-PLANT = 'X'.
        ITEMX-QUANTITY = 'X'.
        ITEMX-PO_UNIT = 'X'.
        ITEMX-NET_PRICE = 'X'.
        ITEMX-BATCH = 'x'.
        ITEMX-TAX_CODE = 'X'.
        ITEMX-INFO_UPD = 'X'.
        APPEND ITEMX.
    *ZPAYMENT-PAYMENT
    *SCHEDULE
        SCHEDULE-PO_ITEM = '20'.
        SCHEDULE-DELIVERY_DATE = ZMMHGAGREMENT-RDATE.
        SCHEDULE-QUANTITY = V_RMENGE.
        APPEND SCHEDULE.
        SCHEDULEX-PO_ITEM = '20'.
        SCHEDULEX-PO_ITEMX = 'X'.
        SCHEDULEX-DELIVERY_DATE = 'X'.
        SCHEDULEX-QUANTITY = 'X'.
        APPEND SCHEDULEX.
    CONDITIONS
        CONDITION-ITM_NUMBER = '20'.
        CONDITION-COND_TYPE  = 'P001'.
        CONDITION-COND_VALUE = ZPPPRDPOLICY-RRATE.
        CONDITION-CURRENCY = 'INR'.
        APPEND CONDITION.
        CONDITIONX-ITM_NUMBER = '20'.
        CONDITIONX-ITM_NUMBERX = 'X'.
        CONDITIONX-COND_TYPE  = 'X'.
        CONDITIONX-COND_VALUE = 'X'.
        CONDITIONX-CURRENCY = 'X'.
        APPEND CONDITIONX.
    ENDIF.
    ENDIF.
    FOR PARTNER FUNCTION
       POPARTNER-PARTNERDESC =  'VN'.
       POPARTNER-LANGU = 'EN' .
       POPARTNER-BUSPARTNO =  ZMMHGAGREMENT-GNUMBER.
       APPEND POPARTNER.
      POPARTNER-PARTNERDESC =  'PI'.
      POPARTNER-LANGU = 'EN' .
    IF ZPAYMENT-PAYMENT = '1'. "V_PAYMENT = '1'.   ".
      POPARTNER-BUSPARTNO =  ZMMHGAGREMENT-ONUMBER.
    ELSE.
    POPARTNER-BUSPARTNO =  ZMMHGAGREMENT-GNUMBER.
    ENDIF.
    APPEND POPARTNER.
    *BREAK SAPUSER..
      CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER                     = HEAD
       POHEADERX                     =  HEADX
      POADDRVENDOR                 =
      TESTRUN                      =
    IMPORTING
       EXPPURCHASEORDER              = I_PNO
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                        = RETURNS
       POITEM                        = ITEM
       POITEMX                       = ITEMX
      POADDRDELIVERY               =
       POSCHEDULE                    = SCHEDULE
       POSCHEDULEX                   = SCHEDULEX
       POCONDHEADER                  = CONDITION
       POCONDHEADERX                 = CONDITIONX
       POPARTNER                     = POPARTNER.
    POCOND                       =
    POCONDX                      =
    POLIMITS                     =
    IF NOT I_PNO IS INITIAL.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ELSE.
    LOOP AT RETURNS WHERE TYPE = 'E'..
    IT_WRITE-MESSAGE = RETURNS-MESSAGE.
    APPEND IT_WRITE.
    ENDLOOP.

  • One to Many relationship in Linking

    Post Author: LaurieBorn
    CA Forum: Data Integration
    I am trying to link three files in Crystal.  For every record in the primary file there may be several records in the other two files.  I want all of the matching records in the second file, but only want to use the third file for a formula If statement.  I did a left outer join to the primary and I did a left outer join from the second to the third file. With my current join I am getting duplicate fields from the second file based on the matching records in the third file.  How can I access a record from the Third file to use in my formula without having an impact on how the records are printed from the other files?

    Post Author: bhofmans
    CA Forum: Data Integration
    Looks like you posted this question to the wrong forum, please move this post to the Crystal Reports forum in order to get a better chance on replies :  http://technicalsupport.businessobjects.com/cs/forums/13/ShowForum.aspx

  • TFS Integration Platform Tool - Work Item Tags are lost

    Hi Guys,
    Scenario 1:
    We have used TFS Integration Platform to do a one time one way sync from TFS 2012 to TFS 2013 for workitems. We see that the
    workitem tags are lost on the target TFS.
    Scenario 2:
    Another scenario we tested was a 2 way work items sync
    between 2 TFS 2013 servers. Work items get synced but the
    workitem tags do not get synced.
    Is this a known issue and limitation of the tool?

    Hi Nachiket,
    For TFS integration tools, there are a few limitations. You can check the limitations section in this
    page for more information. Labels cannot be migrated by using TFS integration tools.
    Berst regards,
    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.

  • Incorrect Link of Execute Work item in External Notification

    Hello Experts,
    I am working with the HCM Processes and Forms and used Standard Task TS17900101 in workflow, for Approve/Reject Forms.
    Everything is working fine (form gets approved/rejected from UWL).
    Now I configured, SWNCONFIG for sending the external notifications, and notifications are also being sent. But when pressing the "Execute Work Item" link from external inbox, I am getting the error:
    ===========================================================
    "Service cannot be reached".
    What has happened?
    URL http://xyz.abc.com:1234/webdynpro/dispatcher/sap.com/pa~asr~formstep/ApproveFormApp call was terminated because the corresponding service is not available.
    ===========================================================
    Since, the task seems to be bound with Java web Dynpro application ApproveFormApp by looking at SWFVISU task visualization, Do I need to do any kind of addition in Services (SICF).
    Or I am missing something in SWFCONFIG.
    Kindly suggest asap.
    Thanks & Regards,
    Jimit Vadher

    Hi Rob,
    Thanks for the note number.
    Let me tell you one more thing is, I have created customized Web Dynpro ABAP application, bound it with the newly created custom Task (for User decision), and used inside the Workflow.
    So when I am sending the Notification of this custom task to External email, Correct link is being generated and working fine for agent.
    But this is not working only for the standard task (TS17900101), I mentioned in my question above.
    So still any service activation is pending? As per the Note, I checked ICF service and found it inactive.
    Is activation required for ICF service, as custom notifications are already going & working fine.
    Please suggest.
    Thanks & Regards,
    Jimit.

  • Can one work item drive another work item.

    Lets say I have two distinct bug tracking work items in tfs 2013. Would I be able to have one work item drive another... for example
    if I create a defect in work item a, it will create a copy of it in work item b.
    if I update the status of defect in work item a, it will update the status in work item b.
    etc...
    Thx.
    Saba

    Hi Saba,
    As far as I know, seems it's unavailable to get a copy of it in another work item automatically.
    Generally, you can associate the created defect with two work items(add links to the defect for the two work items). Another option is open the first work item after adding the defect to it in team web access, then click button of "Create a copy
    of this work item" to get a copy of the work item.
    Best regards,
    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.

  • Is it possible to create a Visual Studio plugin that can copy TFS work item ID by adding a context menu in the work item UI?

    Our team is using VS2013 and TFS 2013, and in our daily work we often open a TFS query, then we need to open a work item, and we often need to copy the ID, for example, to the email.
    But currently the field is read only, and we often manually copy it.
    So is there any convenient way to solve this? Any built in ways?
    If no, is it possible to create such a plugin?
    Regards,
    Lei Yang
    from Motorolasolutions

    Hi Lei Yang
    You can try the following work around to copy work item ID
    for VS 2013:
    Right click on work item tab header in VS 2013 and click 'Copy Full Path' from context menu
    When you paste it on notepad/email you will get work item ID at the end of the path:
    http://sumiran-dev:8080/tfs/web/wi.aspx?pcguid=d855bc22-69a8-45a5-b6fc-25f096ade8f5&id=46
    For Web Portal:
    Right click on work item link at top and click 'Copy shortcut' from the context menu
    When you paste it on notepad/email you will get work item ID at the end of the shortcut:
    http://sumiran-dev:8080/tfs/DefaultCollection/TFS%20Scrum%20Demo/_workitems/edit/46
    Thanks
    Sumiran

  • CcBPM- Error process instance and error work item

    Hi All,
       I i just listing donw my queries about ccBPM.
               1)  What is the difference betwen process instance and work item?
                       I am presuming that, during ccBPM runtime message creates process instance and one process instance can have n number work item. Pleae correct me if i am wrong.
             2) If one process instance is in error status, it means one of the work item is in error. is my undertanding right?
             3) How should i edit/delete work item?
             4) How should i edit/delete process instance?
    Thanks
    Rajesh

    1) What is the difference betwen process instance and work item?
    I am presuming that, during ccBPM runtime message creates process instance and one process instance can have n number work item. Pleae correct me if i am wrong.
    BPM comprises of many Steps. (Receive step, Send step, transform etc...) Durng runtime, A BPM is converted into SAP Workflow in the Background and gets executed. Hence all steps are referred to as WorkItems.
    YES. ccBPM runtime creates multiple instances.. one BPM instance for each inpu message
    2) If one process instance is in error status, it means one of the work item is in error. is my undertanding right?
    Each process instance is independent of the other. Sometimes, the workitems blokc the processing if the other. Hence when the workitems block the processing, they should be deleted using SWWL.
    3) How should i edit/delete work item?
    4) How should i edit/delete process instance?
    You cannot delete a process instance. But can delete the work items.
    -SM

  • Single work item in the Manager's inbox for weeks times

    Hi all,
    I am sure lot of people might have faced this issue.
    Currently we are on EP 6 SP 20
    R/3 4.7
    MSS B.P 60.1
    <b>Scenario</b>: Employee enters times in ESS through CATS. MAnagers ened to approve time
    WF assigned to CATS: 20000460
    <b>Issue:</b> Every time an employee saves his time ( CATS profile set to release times on save, a work item is triggered and the manager sees 5 work item for each mployee for the 5 days. Manager sees too many work items in his inbox. The employees have been advised to save times on a daily basis.
    <b>Possible solutions</b> Define cats profile to release the times manually. In that case the employee will have to release the times every Friday. We doubt that employees might forget to release the times and hence we want to use release on save for CATS profile.
    <b>Question:</b> IS it in any way possible to trigger only one work item for week rather than 5 work items even when having release on save opition selected for the CATS profile.
    please advise
    regards
    Raj
    null

    resolved

  • Problem while launching Webdypro Application on click of a work item in UWL

    Hi All,
    I am trying to launch a webdynpro application by clicking one of the work items in UWL. But I am getting the error as "iview N/A".
    It is trying to use the UWL Launch Webdynpro iview(with the id com.sap.netweaver.bc.uwl.uwlLaunchWebdynpro)
    I searched for the above iview,I could see all the UWL related iviews at the following location(Portal content->Content Provided by SAP->End user content->Standard Portal users->iviews ->com.sap.netweaver.bc.uwl.uwliviews)
    I could find UWL Launch SAP BSP and UWL Launch SAP Transaction and few more,but could n't find UWL Launch Webdynpro iview.
    Can any one let me know wat do I need to do,to get that iview.
    I am working on EP6 & KMC SP19.
    Thanks for the help
    Regards,
    Santhosh

    Hi Santosh
    One thing is clear that you can see your task in the UWL, If your SWFVISU is entry is correct (especially the System Alias ), the only reason i can see is the XML is not imported properly.
    Login as administrator and navigate to
    System Administration->System Configuration->Universal Worklist & Workflow->
    Universal Worklist Administration
    Re-Register your System again.
    and click this link on the same page "Click to Administrate Item Types and View Definitions"
    There will be an XML imported, just check your Task Number is present and check
    the application, if exists should not be a problem.
    If you see the SAP Standard ESS workflows, all webdynpro applicaitons are directly called by specifying the webdynpro component name, not as an iView.
    I think you are using Portal iView to display your webdynpro, try to use the webdynpro applicaiton as it is.
    Regards
    Abhimanyu L

  • ADF One to Many relationship

    I'm a bit confused on how to create one to many relationships with ADF. Let's say I have a make and model table. One make can have many models. Now let's say I create a Business Facade like this (I'm using JavaBeans):
    public Collection getMakes () { ... }
    Ok, my data control now has the collection for makes. And I want to do something like this
    public Collection getModels (Make make) { ... }
    I can't make this work because ADF will detect it as a method accesor. How does this work?
    Regards,
    Néstor Boscán

    Maybe looking at how TopLink does it, can help you.
    Try creating TopLink objects for a master detail set of tables (dept-emp).
    This will create two beans that should be similar to your beans. Look at their structure to see how they work.
    The ADF TopLink workshop has the steps to show you how to do this.
    http://www.oracle.com/technology/obe/obe9051jdev/ide1012/adfworkshop/buildingadfapplicationsworkshop.htm

  • Enhanced Notifications(SWNCONFIG) Vs Work-item Forward Program (RSWUWFML2)

    Is there an easy way to find out the advantages of using Enhanced Notifications SWNCONFIG configurations over scheduling the work-item forward program RSWUWFML2? We are on Ep 7.0/ECC 6.0 and configuring UWL for work-item execution and receiving notifications. For occasional users, we are planning to send email notifications to the Outlook email addresses using RSWUWFML2 and the the SCOT internet Send programs. Are there any added advatnages of configuring Advanced notifications?
    Appreciate any ideas.
    Thanks,
    Saurabh

    Yes, there are several advantages, but you may not need all of them. It takes a little extra effort to set it up, but that's a one-time effort and we are not talking weeks or days.
    However, the primary argument is that this is the standard solution for work item notification. So you are recommended to use the enhanced notification solution whether you need the advantages or not.
    One advantage is additional flexibility in which work items should be checked. You can choose to send notifications to people who don't have new work items, but have not yet completed the work items they (probably) have been notified about before.
    Another advantage is additional flexibility in message contents and the number of messages sent to the user. RSWUWFML2 lets you choose between one message and one message per work item. In the new solution you can also send one message per category, although I am not sure what a category is.
    Further advantages:
    - Multiple schedules can be set up, so you don't have to use SM37 to get an overview of your notification schedules and you can send notifications every hour from 09 to 15 and every 4 hours the rest of the day if you wish. There is a time zone field in the schedule configuration. Whether it is used just to make sure the job runs at the desired time or is even more amazingly advanced (only notifying users when their own time zone shows the same time) I don't know.
    - There's more, but since I have never set it up myself I have not read all of the <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/b9/2a651eb04411d2b46f006094b9ea0d/frameset.htm">documentation from SAP</a> which includes typical scenarios to help you with configuration.
    After opening the link, expand the hierarchy as follows: Reference documentation => Workflow system administration => Extended notifications for SAP Business Workflow.

Maybe you are looking for

  • Unable to enter a Division for which I have proper credentials, via the GUI

    I have a Division which I am unable to enter, either as a student or as the full site Administrator, from the GUI. When I log into the main Site page, I see the link for the Division (as I should - I have DOWNLOAD permissions for the Division). Howev

  • Price from last purchase order

    Hi Experts, I have created info record xxx with some values for XX Vendor and XX Material. Then I have created PO with for same material and same vendor combination with different values and then I am creating PO for same material and same vendor com

  • How Multiple Video Cards Work?

    Let's say I buy a MacPro with 2 video cards and I name the outputs 1 through 4. I want outputs 3 and 4 to mirror output 2, but I don't want to have to run output 2 at the same resolution as outputs 3 and 4. Is this possible? From output 1 I want to o

  • Lost Product Key

    Dear All, I had issues with my computer and had to reset it. I want to re-install my Adobe Acrobat X Pro, i have the disc but i do not have the product key. Product was not registered with Adobe, anyone with suggestion on how i can retrieve the key.

  • Me sale un error al momento de hacer una descarga.

    Me sale un error al momento de hacer una descarga. El mensaje es: tu cuenta no es válida para el uso del store en español, debes cambiar al store colombiano antes de comprar. Que debo hacer?