Run an event when update or create TFS Work items

Hi
I have tried to check for updates in work items in TFS(new work items or changes in available work items).
Then I need to write title of the changed work item to a text file.To do it I am using system center Orchestrator.
I have integrated tfs 2010 integration pack to it. So I could be able to create a new bug and edit existing bug. Then I could be able to get work item and write some property to a file.
Using that integration pack. But I could not found a way to detect changes in TFS work items and do some thing.
I tried monitor work items query to detect the changes.
I have used query to query bug
select * from WorkItems where [Work Item Type]='Bug'
Query interval(seconds)-10
Query in day precision - false
get changedwork items-true
When I run the runbook it do not go to next step and stop running. Runbook shows the status as warning!

My suggestion would be to do this using a run .net script activity with a powershell script inside. If you want examples of working with TFS from powershell check out
https://gallery.technet.microsoft.com/-SMA-Integration-20cb04cf -- there are a bunch of scripts in there that monitor and take action based on tfs changes.

Similar Messages

  • 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

  • TFS work item store is not connecting in production server using server side event handler code

    Server side plugin code to connect to work item store
    tfs = new TfsTeamProjectCollection(new Uri(tfsUri));
    store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));
    I used the above code and accessed work item store in my TFS DEV server without username and password. But the same plugin code is not working for the TFS Production server.
    Exception:
    Account name:
    domain\TFSService Detailed Message: : TF30063: You are
    not authorized to access http://localhost:8080/tfs/xx. Exception Message: TF30063: You are not
    authorized to access http://localhost:8080/tfs/xx
    Please guide

    Hi divya,
    From the error message, you might not have the permissions to get the work item store in TFS production server. You can check the permissions on your production server by using
    tfssecurity command in VS command line.
    Please execute tfssecurity /imx “domain\username” /collection:url, for more information about tfssecurity /imx, please refer to:
    http://msdn.microsoft.com/en-us/library/ms400806.aspx 
    If you have the permission, then you can also clean team foundation cache and try again.
    Best regards,

  • Should I be concerned with losing existing data (projects or events) when updating from FCPX to FCPX 10.1?)

    I purchased a Macbook Pro loaded with FCPX from a private party. I now want to update from FCPX to FCPX 10.1 should I be concered about losing my exhisting projects and events? The previous version of FCPX is registered to another person and wondered if this could potentially overwrite anything. I backed everything up to another drive but, just wondered if anyone has done this sucessfully?

    The project files are put where FCP X wants to put them. If you render anything, it puts the rendering where it wants to put it.
    FCP X has three opportunities to lose something - it can't find your project, it can't find the event, the event can't find the media. We see it on this forum all the time and right now 10.1 is managing all that and screwing it up for some people. We see FCP X updating events and projects...
    With Motion 5, I put my project file where I want - in a folder for that project. In that same folder, I have all my media. It's not necessary to have a feature where it moves my files for me to another drive, etc. I simply drag that folder anywhere I want and all the links are in tact because the links are relative.
    With FCP X, even if I don't copy the media to the events folder and leave it where I want, it still creates a folder with its own hierarchy - Backups, Old Versions, Original Media, Render Files, Transcoded Media...
    FCP X's method opens people up to more problems, obviously. You don't see people on the Motion forum talking about how Motion moved media or put it in the trash etc. The only thing that can happen is the small XML project file can't find the media and so you simply relink and you can use Spotlight for that.
    Seems like there are more headaches with FCP X's method.

  • Invoking Legacy event when Dispute is created.

    My scenario is like this : When ever dispute is created in Oracle Collections, I need to call Java code which will intiate some process in legacy system.
    Can I write trigger for this scenario. I think we can call Java methods using procedure.
    Can any one suggest bestpractices for this scenario?

    Hi,
    Yes, you can create a trigger for this scenario. You are able to call java methods using Oracle Stored Procedures. In metalink, look for notes 131812.1 and 165256.1.
    I used the sample provided in note 165256.1 in a trigger to call OS commands.
    Hope it helps,
    Ketter Ohnes

  • How to invoke an event when i select one of the items in my JComboBox

    Can any one help me for doing this,i have a combobox in a panel,when i select one item in the combobox some text fields below the combobox need to be disabled,that disabled components vary with the item selected,i try to do this by using event listener but some how i could not get invoke the event,pl some one help me for this,any help would be appreciated.
    Regards.

    The block:
    ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    ivjJComboBox1_mouseClicked(e);
    usually should be included in your constructor or init method.
    The method:
    void ivjJComboBox1_mouseClicked(MouseEvent e){
    String s = (String)ivjJComboBox1.getSelectedItem();
    System.out.println(s);
    should be outside your constructor or init method.
    So it should be:
    public class yourClassName extends xxxxx implements xxxxx
    public yourClassName (...) {
    ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    ivjJComboBox1_mouseClicked(e);
    void ivjJComboBox1_mouseClicked(MouseEvent e){
    String s = (String)ivjJComboBox1.getSelectedItem();
    System.out.println(s);

  • InfoType 0235 Update or Create not working

    All,
    I have a program that has to create IT0235 entries or update existing ones with new dates (a copy of last with new dates). 
    Here is snippet of code:
    lwa_p0235-exp02 = 'Y'.
        lwa_p0235-typ02 = '03'.   " Employee SSN Tax
        lwa_p0235-exp03 = 'Y'.
        lwa_p0235-typ03 = '04'.   " Employer SSN Tax
        lwa_p0235-exp04 = 'Y'.
        lwa_p0235-typ04 = '05'.   " Employee Medical
        lwa_p0235-exp05 = 'Y'.
        lwa_p0235-typ05 = '06'.   " Employer medical
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = lwa_p0235-infty
              number        = lwa_p0235-pernr
              subtype       = lwa_p0235-subty
              validityend   = lwa_orig_endda
              validitybegin = lwa_orig_begda
              record        = lwa_p0235
              operation     = lwa_action
              nocommit      = test_ind
              dialog_mode   = lwa_dialog_mode
            IMPORTING
              return        = lwa_bapireturn.
    My problem is that the IT0235 entry is created but the Exempt flags/indictators that I set in my code to 'Y' do not get set.
    I have tried to set the EXEMPT to 'R' and 'X'.  I have also set TYP01 to TYP15 and EXP01 to EXP15 thinking it may be positional but it made no difference.
    Has anybody else had this problem or know why this is happening?
    Regards

    MN Rajan wrote:
    Hello,
    I have a written a query to fetch the value '*Provisioned*'. If its not present in table, then given me the next available value ( <> Provisioned). I am expecting *'NonProvisioned-1'*, if *'Provisioned'* is not there in table. But my query is always giving *'Non Provisioned-1'* even though *'Provisioned'* is available. What is the criteria to identify next available value? How do you decide order to go to next value? You have only one column in table i.e. col1. If you want to consider values from same column to get next value then you can use query mentioned below -
    SQL>
    SQL> SELECT *
      1    FROM dummy
      2   WHERE col1 = 'Provisioned'
      3      OR col1 LIKE '%Provisioned%'
      4   ORDER BY decode(col1, 'Provisioned', 'Non Provisioned-0', col1) ASC
      5  ;
    COL1
    Provisioned
    Provisioned
    Non Provisioned-1
    Non Provisioned-2
    Non Provisioned-3
    SQL> Hope this helps,
    Anirudha

  • TFS 2010 Team Web Access Work Items not loading dropdowns and not saving

    Some of our users have lost their ability to add new work items. When they select New -> Bug the WorkItemEdit page opens, but none of the dropdowns load and required fields are no longer highlighted. When they click save it acts like
    it refreshes, but actually nothing is saved and work item numbers are not assigned. No error message is displayed. This also occurs when they try to edit existing work items. We have checked permissions and these have not changed. We have cleared cache
    and rebooted the server and local laptops. Is there anywhere else we can check to see what is going on? Anyone else have this issue before? It seems like we are loosing another person's capabilities every day.

    Thank you for your help. We have SP1 scheduled for install Monday morning. However, we have been running a lot of tests. We are testing mainly in Chrome and IE 9 browsers.
    I was able to get 2 users back up and working. Not sure what fixed them, but I had them log into the server and test there. Accessing the web portal on the server worked for them and when they went back to their laptops their full capabilities
    were working there again. I have since removed their rdp access to the server and the capabilities are still working correctly on their laptops.
    However, I have a 3rd user that I had log into the server and updating and creating new work items did not work for him. This is the error he receives when opening a work item. This user did try testing in Mozilla one day this week.
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
    Timestamp: Fri, 6 Feb 2015 14:23:43 UTC
    Message: 'undefined' is null or not an object
    Line: 459
    Char: 9
    Code: 0
    URI: http: //synqtfs2:8080/tfs/web/ScriptResource.axd?d=FYYkafvHmJyg7KmGDtGowHNi60MyDp_sPy-aHe4FCjNjVsni06fZnOIXJiFxZpzcMt92dwoABVR433z1HUUKi-9aLOEO651UC75HFjmS7hvUIPs_HbO_gMhEIFzDLJCRn3-zV0_qstaTszOYGGcLVSqLpmbOMg9VwaYgOa0o__3xszzq_OYpQwOuLyDFEZY_2zbcjg2&t=ffffffffe8aa60f2
    Message: 'this.m_scrollCell.style' is null or not an object
    Line: 513
    Char: 9
    Code: 0
    URI: http://synqtfs2:8080/tfs/web/ScriptResource.axd?d=FYYkafvHmJyg7KmGDtGowHNi60MyDp_sPy-aHe4FCjNjVsni06fZnOIXJiFxZpzcMt92dwoABVR433z1HUUKi-9aLOEO651UC75HFjmS7hvUIPs_HbO_gMhEIFzDLJCRn3-zV0_qstaTszOYGGcLVSqLpmbOMg9VwaYgOa0o__3xszzq_OYpQwOuLyDFEZY_2zbcjg2&t=ffffffffe8aa60f2

  • Delete credit memo work item created in VA01 when the user change value

    Hi,
    In T.code VA01 Credit memo request is creating, this document will automatically create  work item.  Based on Net value in credit memo request, the work item should go for 5 levels of approval. After 1st person is approved, the workflow initiator realized that the net value in created Credit Memo request is wrong; he is going to VA02 and correcting the net value. Again we have to create new work item for this and delete the already created work item. Client has clearly mentioned when ever there is change in 5 critical fields in VA02 then only create fresh work item otherwise no need to create SECOND TIME work item. Net value is one of the critical field in the list.
    How to track already created credit memo request and how to delete the previously created work item. What is the feasibility of this requirement and how to handle this situation?
    Regards
    Vijay

    Hi,
    Just put a Fork and put 1 out of 2 outcomes and in the first alternative, you put your witem that goes to user B. In the 2nd alternative, put a Wait for event "CHANGED". And after this, put a process control step with "Set workitems to Obsolete" or "Cancel workflow" etc., depending on your requirement.
    Pl note that this will only take out old witems, but you need to send a new witem for which you need to trigger another instance of the workflow as well. pl put CHANGED event also as one of the triggering events and use condition editor to restrict the fields that triggers the workflow.
    Also, look into the IMG config of the following path. This might be a fitting solution.
    In SPRO, go to Financial Accounting (New)---> Financial Accounting Global settings(New) -
    >Tools --->Workflow ---> Workflow for Document Parking -->Reset Release Approvals(Customers).
    Here, you can list down the fields, the workflow should restart. But, then you need to give the workflow details etc., in the relevant config settings.
    We have used this in restarting workflows for General Ledger(GL) documents' workflow when some important fields are changed.
    For this config settings, look into the following help link.
    http://help.sap.com/erp2005_ehp_02/helpdata/en/01/a9cdd8455711d182b40000e829fbfe/frameset.htm
    Hope this helps.
    venu

  • Build Failure Not Creating Work Items

    I am configuring nightly builds for our new TFS system (we migrated from VSS; using TFS 2013 Update 4).  I left the "Create work item on failure" set to True in the build configuration.  However, it seems that no work items are being
    created, or else I do not know how to find them.
    In the build log I see the line
    Create a bug for the build failure
    and it is not followed by any errors.  However, when I go into the Work area of the project (either through Visual Studio or a web browser) I do not see any work items.  I tried creating a new query and removing all filters, but nothing returns
    (we are not currently using Work Items for anything else).
    How do I find the work items it supposedly created, or if it is not creating them how do I get TFS to create them?

    Looks like this is failing with this message:
    TF30040: The database is not correctly configured. Contact your Team Foundation Server administrator.
    Specifically, it gets an access denied error when trying to call sp_send_dbmail.  Based on the Event Viewer on the server, it appears as though it is trying to execute sp_send_dbmail as my user, which does not have permissions to the proc.
    At the moment, there are several scenarios:
    1. Build fails, work item should be auto-created
    2. Work Item is manually created
    3. An alert is configured
    In scenario #1, the build fails, and no work item is created.  Event Logs on the server show that this is because the build service account does not have permissions to execute sp_send_dbmail.
    In scenario #2, I cannot create a work item because it is trying to send an email, though my user does not have permissions to execute sp_send_dbmail.
    In scenario #3, an email is sent.  I set up an alert to receive an email any time something is checked in.  I received said email.
    Is there a way to have this call made by some other user?  Or to disable the alerts altogether?

  • Terminating Event to Event Queue due to Work Item Lock

    I have a dialog workflow task based on an asynchronous method defined with a terminating event.  When the user executes the work item, the method generates the terminating event (via a V2 change document) but the work item is enqueued (locked) by the same user (locked when they execute the work item from SBWP) and therefore the terminating event goes into error and is placed in the event queue.  The background job which processes the event queue does not redeliver the event so it stays in the event queue and the work item fails to complete.  Other than dequeing the work item lock myself with a function call how do I get around this catch 22?

    Hello Martin,
    Actually, the locking happens whether I have the task as asynchronous or synchronous.  The problem is the timing. If the user does not release the lock (by backing out of the dialog which is executed) prior to the terminating event attempting to enqueue and complete the work item then the event goes into error and is inserted into the event queue (and lingers there indefinitely, almost). Another issue with the asynchronous approach is that even if the user backs out of the dialog before the event actually attempts to complete the work item they will still see the work item in the inbox unless they click the refresh button when they get back to the inbox. 
    I have changed the task to synchronous but here is my scenario and another question.
    The process being workflowed is the approval of service entrysheets (similar to an invoice if you are not familiar with External Services).  In our process, there are a large number of documents being created and requiring approval by particular approvers.  It is a normal scenario for an approver to have, lets say 25 documents in his inbox awaiting approval. It was not practical for him to have to navigate back and forth between his inbox and the approval task screen.  Therefore, I give the users the option of (when executing a work item) having all the documents in his in-box (for this particular task) be presented in an approval list screen.  They can then do a mass approval of the 25 documents with 1 click and 1 navigation.  This list screen is also available to be executed outside workflow via a tcode.  So, when the user executes the mass approval (either from the inbox or outside workflow) the work items are terminated via the terminating event assigned to the approval task.
    A couple of issues remaining:
    1) Given my example of 25 work items (user executes 1 work item from in-box
    and I displayed all 25) being approved, when the user returns to the in-box, the 24
    items remain in his inbox until he clicks the refresh button since these were not actually "executed" from the workflow engines point of view.  However, these were terminated successfully because they were not "locked".
    <b>Question:</b> Is there a way (user exit?) to trigger the inbox refresh automatically.
    2) Now, the issue with the actual work item which the user executes from the inbox.  As I mentioned, the work item is locked as soon as the user executes it and is not released until they back out of the dialog or logoff.  So, here is what happens:  If the terminating event is sent before the lock is released the event is sent to the event queue.  If they then back out back to the in-box, its OK since I put some code in the SWO1 object type program (rememeber, its now synchronous) which will determine if they did the approval/rejection and the work item will complete and the event in the event queue will be deleted the next time the Event Queue Background job runs (it deletes any events for work items already in COMPLETED status). However, lets say they simply log off rather than backing up to the in-box or they don't do anything and are eventually logged off by timeout. In this case the code in the object type program to determine if the approval/rejection was done does not get executed (control does not return to the object type program) and the work item remains in "STARTED" status and remains in the users inbox and the event is in the event queue. So, now we have a work item that should be completed still sitting in the users in-box and the terminating event in the event queue. So the next time the user goes to their inbox the work item is still there.  The interesting thing is that though this may be confusing to the user, if they then attempt to execute the work item, they will get a message: "Work item currently being completed by event" (Message SWF_RUN 644) and the event sitting in the event queue gets redelivered and completes the work item.  To alleviate this problem I was thinking of adding a call to SAP_WAPI_WORKITEM_COMPLETE in the approval list screen after they do the approval but I'm guessing it wont work since it probably will try to enqueue the work item and it will still be locked. 
    Hopefully you haven't nodded off reading this rambling note...
    Thank you,
    Bob

  • TFS 2013 - Hide iteration work items from Backlog page in Web Access.

    Hi All,
    I am using TFS 2013, update 3.  I have a single team project with a few Teams.  When I am on a team's board, and click on "backlogs" I only want to display the work items that are in the default area for the team.  I don't want to
    display those that are already assigned to an iteration.  Is there way to accomplish this?  Any help will be greatly appreciated.  The process template that I am using is "MSF for Agile Development....".

    Hi Mego123,
    When you create a work item, the iteration field should has its value before saving the work item. We cannot have a work item with null for iteration. And it's not conflict with the work items in the default area. Even you specify the area to the team, you
    also have to use an iteration.
    If you have other concerns, please give out more details about your requirement.
    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. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Send notification to external mail id when work item reach users inbox

    hi all ,
              i would like to know wat are all the settings required for sending an external mail when a user recieves a work item. i think it can be done by running the program rswuwfml .but wat are all the settings required to be done before running the program .....
    Useful answers will be rewarded.......

    What the??!!!! I totally missed this before and actually found it quite acidentally....
    >Yep true! Totally agree with Kjtetil, it adds to an already noisy forum and I am >afraid if others start aping it will be brought down on level with the XYZ forum. >And we don't want that!
    >Anyone volunteering to have the 'M' flag?
    Though I cannot comprehend what you are trying to get at or say I will, attempt to set the record straight.
    Yes I have said that on another thread. I am not asking for points anywhere, I am happy to receive and happier to solve someone's problem.
    The issue with this thread is the author obviously has not bothered to do any investigation. I am not for spoon feeding just for the sake of some points, I am willing to help those who do some bit from their end as well who encounter a genuine stumbling block.
    My reference to "reward" was with a bit of sarcasm, if you know what that means.

  • No mail notification when a new R3 Work Item is available in the UWL...

    Hi,
    I would use the universal worklist(UWL) to display SAP workflow items in the portal.
    However, we have also the requirement that the end-user should get an email when a new task (r3 work item) is available.
    I connected the mail and i can send and recieve only when i create task from the UWL in the Portal.
    When i receive r3 work items no mail notification is sent.
    Please what is wrong?
    Had somebody implemented this or any ideas how to do this?
    I appreciate any help.
    Thanks in advance,
    Ari

    Hi,
    Its more on to the UWL side to send the alerts for the substitution tasks.
    BPM doesnt have any handle once it hand it over to UWL. You can check the alerts in UWL to send notification to the substitution person so that that person aware of the task.
    Another option may be check what UWL APIs provides so that you can read the substitution person in advance in BPM so that you can model a notification task
    Regards, Anil

  • The attached VI works when I run it initially creating the XML file, but when run after the XML file is created, it's not updated. What am I doing wrong?

    The attached VI works when I run it initially creating the XML file, but when I change data and run after the XML file is created, it's not updated with new data. What am I doing wrong?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    Attractive Force XML.vi ‏23 KB

    That looks like the logic which was written into the VI
    Inner true/ false case:
    (file exists : false) write to XML file, unflatten for display
    (file exists : true) read from XML file, unflatten for display
    At no time when the file exists (true case) is the XML file updated...

Maybe you are looking for

  • ITunes syncing the wrong songs to my iPod

    I have recently been trying to sync my iPod with my iTunes library, and have been repeatedly failing. After slowing the process and attempting to do it a few songs at a time, I noticed that it was including songs I had not asked it to include. While

  • N8 Automatically Connects to the internet.

    Hi, My new Nokia N8 automatically connects to the internet. When I open applications that need internet connection it connects without asking. For example if I open Ovi Maps, SW update, or games that use the internet it automatically connects without

  • Use a second instance of Python

    Hi.. I hope that what i'll write won't be silly.. I need to run  a program that require a python interpreter with support for unicode UCS4. The python interpreter that is release with archlinux has support for UCS2 instead. I noticed a bug ticket whe

  • Review mode: how to show only the question slides again

    <Captivate 7, Win 7> Hi, I have a project that has the following order: 1. content screen 2. content screen 3. multiple choice question #1 4. content screen 1. content screen 2. content screen 3. multiple choice question #2 4. content screen 1. conte

  • Minimum flash version for Flex SDK 3.6

    Using FB 4.5.1 to build to Flex SDK3.6. For 3.6, what's the minimum flash version. I didn't see it in the readme doc