SpiraPlan: SoapService SOAP Web Service
See all operations
Requirement_Create1
Description
Creates a new requirement record in the current project using the position offset method
This version is use when you want to specify the relative indentation level
Example(s)
spiraImportExport.Connection_Authenticate("aant", "aant"); spiraImportExport.Connection_ConnectToProject(projectId1); //Lets add a nested tree of requirements //First the summary item RemoteRequirement remoteRequirement = new RemoteRequirement(); remoteRequirement.StatusId = 1; remoteRequirement.Name = "Functionality Area"; remoteRequirement.Description = String.Empty; remoteRequirement.AuthorId = userId1; remoteRequirement = spiraImportExport.Requirement_Create1(remoteRequirement, 0); requirementId1 = remoteRequirement.RequirementId.Value; //Detail Item 1 remoteRequirement = new RemoteRequirement(); remoteRequirement.StatusId = 2; remoteRequirement.ImportanceId = 1; remoteRequirement.ReleaseId = releaseId1; remoteRequirement.Name = "Requirement 1"; remoteRequirement.Description = "Requirement Description 1"; remoteRequirement.AuthorId = userId1; remoteRequirement = spiraImportExport.Requirement_Create1(credentials, remoteRequirement, 1); requirementId2 = remoteRequirement.RequirementId.Value;
Parameters
Type | Name | Required |
---|---|---|
RemoteCredentials? | credentials - The API credentials | |
RemoteRequirement? | remoteRequirement - The new requirement object (primary key will be empty) | |
int | indentPosition - The number of columns to indent the requirement by (positive for indent, negative for outdent) | Yes |
Return Value
RemoteRequirement - The populated requirement object - including the primary key