Overview
Creating elements with the FogBugz API is very simple and powerful. Just follow the instructions below to create any of the available elements.
Information
Project
To create a new Project, send cmd=newProject. The following arguments are available:
sProject– The title of the new projectixPersonPrimaryContactfAllowPublicSubmitfInbox– default 0- Returns –
ixProjectof the new project
Area
To create a new Area, send cmd=newArea. The following arguments are available:
ixProject,sArea– The title of the new areaixPersonPrimaryContact– Use -1 for Project’s Primary Contact- Returns –
ixProjectof the new project
Person
To create a new Person, send cmd=newPerson. The following arguments are available:
sEmail– requiredsFullname– requirednType– default 0. Set to 0 for a normal user, 1 for an administrator, 2 for a community user, and 3 for a virtual userfActive– default 1. Use only when creating new personsPassword– default = randomsLocale– optionalsLanguage– option optionalsSnippetKey– optionalfNotify– optionalsPhone– optionalsHomepage– optionalfDeleted– optional. Set fDeleted to True to mark a user as Inactive (does not delete the user, or their history)- Returns –
ixPersonof the new person
Milestone
To create a new Milestone, send cmd=newFixFor. The following arguments are available:
ixProject– required. Set ixProject to -1 to create a global milestonesFixFor– required. The title of the new milestonedtRelease– optionaldtStart– optionalsStartNote– optionalfAssignable– optional- Returns –
ixFixForof the new Milestone
For more information, refer to the complete XML API documentation for FogBugz.
Priyanka Bhotika
Comments