Welcome to the Axosoft Community, Sign in | Register | Help
in Search

Creating Incident - Best Practices? Too many variables...

Last post 12-07-2007, 9:12 AM by cprinos. 3 replies.
Sort Posts: Previous Next
  •  08-23-2007, 2:19 PM 12950

    Creating Incident - Best Practices? Too many variables...

    We're looking to start creating incidents via the SDK, at first creating them from internal systems like our syslog-monitor, but then perhaps from external sources too. I can create the incident no problem, but it appears to me that the process is very fragile because of the number of internal identifier numbers involved. If we change default projects, workflow steps, users, statuses, etc. then all the ids could change. This is annoying for local code, but catostrophic for code running on machines we don't control (or have minimal control over).

    So... We're thinking of having the remote systems make a web service call to a new service we create which will create an "empty" incident with all the default values we want to assign to the incident and we'll return that id. Then the remote system can change the fields it needs to and then update the incident. This way if we want to change the default ids the only place they're used is in our local "GetNewIncidentWithDefaults" service. Still not pretty, but at least we control that.

    Am I missing something? Is there a way to have ontime create an incident with the appropriate default values? If not, how are others dealing with these issues?

    -Walden

  •  12-03-2007, 7:55 AM 14163 in reply to 12950

    Re: Creating Incident - Best Practices? Too many variables...

    I use sql queries directly on the OnTime DB to build a map of type ids to the names (e.g. "select SeverityTypeId,Name from SeverityTypes"). This is done once (for each type... Severity, Priority, Workflow, etc) during initialization of an object that connects to OnTime, and then after that I can just access values using the names instead of the numbers, and changes are taken care of automatically.

    It would be nicer if the SDK allowed you to specify by name instead of requiring the ids so that this was not necessary

     

  •  12-07-2007, 9:03 AM 14307 in reply to 14163

    Re: Creating Incident - Best Practices? Too many variables...
    Instead of going directly to the database to get the list of severities, you can use the TypeHandler class in the TypeService.asmx and call GetSeverityTypes()
    Dan Suceava
    http://www.axosoft.com
  •  12-07-2007, 9:12 AM 14309 in reply to 14307

    Re: Creating Incident - Best Practices? Too many variables...
    Thanks Dan, I didn't realized it was exposed like that.
View as RSS news feed in XML

© 2002 - 2007, Axosoft, LLC. All Rights Reserved. | Privacy
Bug Tracking | Defect Tracking Videos | Help Desk Software