ServiceDesk

 View Only
  • 1.  Edit Incident Form Over-writing Each Other

    Posted Mar 20, 2014 12:11 AM

    If two users were to use the Edit Incident form (a process type action for incident management) at the same time it seems that the second person to click the Save Incident button over-writes any changes the first made.

    I know I could build some improved checking into that workflow using last modified but is there an easier way?

    ServiceDesk 7.5 SP1



  • 2.  RE: Edit Incident Form Over-writing Each Other

    Posted Mar 24, 2014 08:56 AM

    Instead of improved checking, I'd be inclined to set a lock on the incident when the edit form is opened. Once it's saved, unlock it. You'd obviously also need a simple check to see if it's locked when attempting to edit.



  • 3.  RE: Edit Incident Form Over-writing Each Other

    Broadcom Employee
    Posted Mar 24, 2014 09:04 AM

    Workflow has a lease functionality that is suppose to lock an incident from being edited by additional users once a users starts to work on the incident. The lease time is configured in the master settings. As long as this is properly set you shouldn't have issues with multiple users editing the same project.



  • 4.  RE: Edit Incident Form Over-writing Each Other

    Posted Mar 24, 2014 05:56 PM

    Thanks for the replies.

    I tested this before posting on a SD install that was pretty much "out of box" default and the Edit Incident form was definitely allowing edits and over-writing as described.

    "Edit Incident" is a Process type Action.  I can see the Workflow Settings > Task Lease Time (in min) setting in the master portal settings but could it be that this doesn't affect process type actions?



  • 5.  RE: Edit Incident Form Over-writing Each Other

    Posted Mar 25, 2014 09:45 AM

    That was my thought as well, but I didn't have a chance to look at the workflow to verify it. If it doesn't though, you could change the workflow to add in a lease like I suggested above.



  • 6.  RE: Edit Incident Form Over-writing Each Other

    Posted Mar 25, 2014 03:05 PM

    Do you have any examples of adding in a lease?  I'm compfortable with adding a "Leased" property to an extended data set and using that but I'm wondering if you have a better way?



  • 7.  RE: Edit Incident Form Over-writing Each Other
    Best Answer

    Posted Mar 25, 2014 05:03 PM

    I don't have a "better" way. I'd be inclined to add the property to your data set. The other option I can think of would be to find an open task on the IM, set a lease on the task (using the existing component for that) and break the lease when you are done (again, existing component). You'd need to check all open tasks on the IM before you leased it to make sure it wasn't already leased, though, so I'm guessing it'd be kinda slow compared to using an existing data set.



  • 8.  RE: Edit Incident Form Over-writing Each Other

    Posted Mar 25, 2014 05:41 PM

    Thanks - I really appreciate your input.

    I'm pretty tempted by using the data set but I'm also aware I'd need to back it up with a means of removing that lease for situations where it gets set and somehow a user manages to break out of the pta form without un-setting it.  Yet another workflow!

    I'll look at the existing task lease option too though.