Bugs_Update Operation

Applies to QAComplete 14.5, last modified on August 06, 2024
Since release 10.2, this functionality is obsolete and is supported for backward compatibility only. We recommend that you use QAComplete REST API to access and manage data in QAComplete.

Replaces the defect information with that from the specified Bug object. Uninitialized properties are cleared.

You usually first call Bugs_Load to get a defect by ID, change some of its properties and then pass the updated object to Bugs_Update.

Requirements

The authenticating user must belong to a user group that has the Update privilege for Defects.

Parameters

The operation uses the following parameters:

AuthenticationData  :  AuthenticationData, required

An AuthenticationData object containing the login information and the project ID that contains the defect.

Bug  :  Bug, required

A Bug object with the updated defect information.

SendEmailAlert  :  string, required

Y means send an email alert to the subscribed users after updating the defect.

Any other value (for example, N or empty string) means do not send email alerts.

Result

None.

Remarks

The Bug object has matching Id and Name properties, for example, FolderId and FolderName. To set them, specify the value only for the Id property. The corresponding Name property will be set automatically.

Example

Sample Code

To view sample code that shows how to use the Bugs_Update operation to update a defect’s status, see Change Defect Status.

To view sample code that shows how to use the operation to update several properties of an item in your project, see Change Item Properties.

Sample Request XML

POST /psws/psws.asmx HTTP/1.1
Host: myteam.mysite.com
Content-Type: text/xml; charset=utf-8
Content-Length: 1868 {Insert an appropriate value here}
SOAPAction: "http://www.pragmaticsw.com/Bugs_Update"
 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Bugs_Update xmlns="http://www.pragmaticsw.com/">
      <AuthenticationData>
        <AppCode>agSP</AppCode>
        <DeptId>7154</DeptId>
        <ProjId>1032</ProjId>
        <UserId>25315</UserId>
        <PassCode>p@ssword</PassCode>
      </AuthenticationData>
      <Bug>
        <CustomFields>
          <string>0.9.19</string>
          <string>1.0.24</string>
        </CustomFields>
        <CustomFieldNames>
          <string>Found in build</string>
          <string>Fixed in build</string>
        </CustomFieldNames>
        <BugId>13254</BugId>
        <Title>Floating toolbar improvements</Title>
        <StatusCode>Resolved</StatusCode>
        <PriorityCode>2-Fix Soon</PriorityCode>
        <HowFoundCode>Test-Ad hoc</HowFoundCode>
        <ResolutionCode>Fixed</ResolutionCode>
        <AssigneeUserId>27942</AssigneeUserId>
        <OpenedBy>27568</OpenedBy>
        <ClosedBy>27942</ClosedBy>
        <ResolvedBy>27568</ResolvedBy>
        <Description><![CDATA[The design of the floating toolbar needs improvement so that it’s clearer what the user needs to do.]]></Description>
        <OwnerUserId>27572</OwnerUserId>
        <FolderId>52359</FolderId>
        <EstStart>2014-06-10T10:00:00</EstStart>
        <PctComplete>100</PctComplete>
        <ActualStart>2014-06-17T00:00:00</ActualStart>
        <ActFinish>2014-06-31T00:00:00</ActFinish>
        <DateOpened>2014-05-26T15:54:21.093</DateOpened>
        <DateResolved>2014-06-24T15:55:25</DateResolved>
        <ProjId>17823</ProjId>
        <DateCreated>2014-05-26T15:54:21.093</DateCreated>
        <AssignedToName>Doe, John</AssignedToName>
        <OpenedByName>McLaren, Susan</OpenedByName>
        <OpenedByEmail>[email protected]</OpenedByEmail>
        <OpenedByCompany>Edgar Solutions</OpenedByCompany>
        <ResolvedByName>McLaren, Susan</ResolvedByName>
        <OwnerName>Davis, Eugeny</OwnerName>
        <FolderName>FamilyAlbum/Release 1.1/Iteration 1</FolderName>
      </Bug>
      <SendEmailAlert>N</SendEmailAlert>
    </Bugs_Update>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

POST /psws/psws.asmx HTTP/1.1
Host: myteam.mysite.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 1876 {Insert an appropriate value here}
 

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Bugs_Update xmlns="http://www.pragmaticsw.com/">
      <AuthenticationData>
        <AppCode>agSP</AppCode>
        <DeptId>7154</DeptId>
        <ProjId>1032</ProjId>
        <UserId>25315</UserId>
        <PassCode>p@ssword</PassCode>
      </AuthenticationData>
      <Bug>
        <CustomFields>
          <string>0.9.19</string>
          <string>1.0.24</string>
        </CustomFields>
        <CustomFieldNames>
          <string>Found in build</string>
          <string>Fixed in build</string>
        </CustomFieldNames>
        <BugId>13254</BugId>
        <Title>Floating toolbar improvements</Title>
        <StatusCode>Resolved</StatusCode>
        <PriorityCode>2-Fix Soon</PriorityCode>
        <HowFoundCode>Test-Ad hoc</HowFoundCode>
        <ResolutionCode>Fixed</ResolutionCode>
        <AssigneeUserId>27942</AssigneeUserId>
        <OpenedBy>27568</OpenedBy>
        <ClosedBy>27942</ClosedBy>
        <ResolvedBy>27568</ResolvedBy>
        <Description><![CDATA[The design of the floating toolbar needs improvement so that it’s clearer what the user needs to do.]]></Description>
        <OwnerUserId>27572</OwnerUserId>
        <FolderId>52359</FolderId>
        <EstStart>2014-06-10T10:00:00</EstStart>
        <PctComplete>100</PctComplete>
        <ActualStart>2014-06-17T00:00:00</ActualStart>
        <ActFinish>2014-06-31T00:00:00</ActFinish>
        <DateOpened>2014-05-26T15:54:21.093</DateOpened>
        <DateResolved>2014-06-24T15:55:25</DateResolved>
        <ProjId>17823</ProjId>
        <DateCreated>2014-05-26T15:54:21.093</DateCreated>
        <AssignedToName>Doe, John</AssignedToName>
        <OpenedByName>McLaren, Susan</OpenedByName>
        <OpenedByEmail>[email protected]</OpenedByEmail>
        <OpenedByCompany>Edgar Solutions</OpenedByCompany>
        <ResolvedByName>McLaren, Susan</ResolvedByName>
        <OwnerName>Davis, Eugeny</OwnerName>
        <FolderName>FamilyAlbum/Release 1.1/Iteration 1</FolderName>
      </Bug>
      <SendEmailAlert>N</SendEmailAlert>
    </Bugs_Update>
  </soap12:Body>
</soap12:Envelope>

Sample Response XML

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 305 {The server returns an appropriate value here}
 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Bugs_UpdateResponse xmlns="http://www.pragmaticsw.com/" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 315 {The server returns an appropriate value here}
 

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Bugs_UpdateResponse xmlns="http://www.pragmaticsw.com/" />
  </soap12:Body>
</soap12:Envelope>

See Also

Bugs_Add
Bugs_Delete
Bugs_GetStatuses
Bugs_Load
Bugs_LoadByCriteria
Defects Operations
SOAP API Reference

Highlight search results