AddItemExternal.aspx
Moderator: SourceGear
AddItemExternal.aspx
Would it be possible to get either the source for this form, or an example of using AddItemExternal()?
It seems to take the same MantisItem object as AddItem but there doesn't seem to be any documentation as to what the required data is, what the return value represents, etc.
Just seeing a sample would save me a lot of poking around.
It seems to take the same MantisItem object as AddItem but there doesn't seem to be any documentation as to what the required data is, what the return value represents, etc.
Just seeing a sample would save me a lot of poking around.
I just added the following KB article with some examples for AddItemExternal()
http://support.sourcegear.com/viewtopic.php?t=2568
http://support.sourcegear.com/viewtopic.php?t=2568
Mary Jo Skrobul
SourceGear
SourceGear
Great work. This is exactly what I was looking for.mskrobul wrote:I just added the following KB article with some examples for AddItemExternal()
http://support.sourcegear.com/viewtopic.php?t=2568
Just a note on the KB. I had to remove the following line to get it to work:
dragnetService.Url = "http://localhost/dragnet";
dragnetService.Url = "http://localhost/dragnet";
The example URL was supposed to be: "http://localhost/dragnet/dragnetwebservice.asmx"
I updated the article.
Sorry about that.
I updated the article.
Sorry about that.
Mary Jo Skrobul
SourceGear
SourceGear
More info on Error on AddItemExternal()
Hello,
I'm porting my 400 bugs into DragNet and am using AddItemExternal().
I was able to create a VB project, add the web reference and login to the web service. I then created my call to AddItemExternal(), but get back error 1009. Project Permission Denied = 1009.
Here's my code:
That user is an 'admin' and also has developer & Administrator rights to all projects. Through the Dragnet app, that user can create items. Any insights?
thanks, Ken
I'm porting my 400 bugs into DragNet and am using AddItemExternal().
I was able to create a VB project, add the web reference and login to the web service. I then created my call to AddItemExternal(), but get back error 1009. Project Permission Denied = 1009.
Here's my code:
Code: Select all
Dim ret As Integer
Dim mItem As Dragnet.MantisItem = New Dragnet.MantisItem
mItem.ProjectID = 1017
mItem.CategoryID = 1 ' 1 = application
mItem.Description = "Description "
mItem.Details = "Details"
mItem.Version = "build 200" ' Found in
mItem.PlatformID = 2 ' Windows
mItem.TypeID = 3
mItem.AssigneeID = 101
mItem.Created = "4/19/2004"
mItem.StatusID = 2
mItem.Subject = "Subject"
ret = dn.AddItemExternal(mItem)
thanks, Ken
It works!
Well, what do you know? It's working great! I knew it had to be something simple.