The monitorChangeIssueStatus Web API Method

Modify an Issue's status code based on an Issue's Id and a status code.

Version: 1.2

Required Permissions: Full

HTTP method: POST

Supported by Editions: Zend Server

Request Parameters:  

Parameter

 Type

Required

Description

issueId

String

Yes

The issue identifier

newStatus

String

Yes

The new status to set: Open | Closed | Ignored

Response Format: Up-to-date issue element or an error message explaining the problem

Possible Action Specific Error Codes: This action has no specific error codes

Example

Usage Example

Request (headers removed for the purpose of clarity)

POST /ZendServer/Api/monitorChangeIssueStatus

Content-type: application/x-www-form-urlencoded

issueId=1&newStatus=Closed

Response (not all headers are shown)

HTTP/1.0 200 OK

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.3">

<requestData>

<apiKeyName><![CDATA[Admin]]></apiKeyName>

<method>monitorChangeIssueStatus</method>

</requestData>

<responseData>

<issue>

<id>11</id>

<rule>PHP Error</rule>

<count>1</count>

<lastOccurance>123412341234</lastOccurance>

<severity>Warning</severity>

<status>Closed</status>

<hasCodetracing>false</hasCodetracing>

<generalDetails>

<url>http://localhost/test.php</url>

<sourceFile>/var/www/test.php</sourceFile>

<sourceLine>302</sourceLine>

<function>fopen</function>

<aggregationHint>123412341234</aggregationHint>

<errorString>Permission Denied</errorString>

<errorType>E_WARNING</errorType>

</generalDetails>

<whatHappenedDetails>

<eventsGroupId>27</eventsGroupId>

<eventsCount>1</eventsCount>

<startTime>2013-05-09T14:07:57+03:00</startTime>

<startTimeTimestamp>1368097677</startTimeTimestamp>

<serverId>0</serverId>

<class></class>

<hasCodetracing>false</hasCodetracing>

<userData><![CDATA[]]></userData>

<javaBacktrace><![CDATA[]]></javaBacktrace>

<execTime>0</execTime>

<avgExecTime>0</avgExecTime>

<relExecTime>0</relExecTime>

<memUsage>0</memUsage>

<avgMemUsage>0</avgMemUsage>

<relMemUsage>0</relMemUsage>

<avgOutputSize>0</avgOutputSize>

<relOutputSize>0</relOutputSize>

<load>0</load>

</whatHappenedDetails>

<appName>Wordpress</appName>

<appId>12<appId>

<routeDetails>

<routeDetail>

<key>controller</key>

<value>test</value>

<routeDetail>

</routeDetails>

</issue>

</responseData>

</zendServerAPIResponse>