This API call allows you to search the ExtraView database and to return a set of records that match the search criteria. This function is equivalent to the search capability within the browser version of ExtraView. It is extremely powerful as multiple search filters can be set on different fields. For example, it is straightforward to set up a search that responds to a query such as “tell me all the open issues against a specific module within a specific product that contain a specific keyword.
http://www.myserver.com/evj/ExtraView/ev_api.action?
user_id=username
&password=password
&statevar=search
&page_length=100
&record_start=1
&record_count=10
&p_template_file=file.html
&persist_handle=xxx
&username_display=ID | LAST | FIRST
&status=OPEN
&module_id=WIDGET
&product_name=MY_PRODUCT
&keyword=wireless%20PDA
. . .
For example, a return from a valid search may be as shown in the following XML:
<?xml version="1.0"?>
<EXTRAVIEW_RESULTS> <PROBLEM_RECORD> <ID TITLE="Bug #">12266</ID> <SHORT_DESCR TITLE="Title"><![CDATA[Here is the title]]></SHORT_DESCR> <SEVERITY_LEVEL TITLE="Severity">02</SEVERITY_LEVEL> <PRIORITY TITLE="Priority">2</PRIORITY> <PRODUCT_NAME TITLE="Product">NetOp</PRODUCT_NAME> <DATE_CREATED TITLE="Created">19-APR-01</DATE_CREATED> <OWNER TITLE="Owner">DIAMONDK</OWNER> <TIMESTAMP TITLE="Last Modified">21-JUN-01</TIMESTAMP> <ASSIGNED_TO TITLE="Assigned To">CARL.KOPPEL</ASSIGNED_TO> <PRIVACY TITLE="View">Private</PRIVACY> <CATEGORY TITLE="Category">Software</CATEGORY> <RESOLUTION TITLE="Disposition"></RESOLUTION> <DATE_CLOSED TITLE="Date Closed"></DATE_CLOSED> <ORIGINATOR TITLE="Originator">ROBBIE.LLOYD</ORIGINATOR> <ORIGINATOR_NAME TITLE="Originator">Rob Lloyd</ORIGINATOR_NAME> <MODULE_RECORD> <MODULE_NAME TITLE="Module">Server</MODULE_NAME> </MODULE_RECORD> <RELEASE_RECORD> <RELEASE_FOUND TITLE="Version Open">1.0.1.16</RELEASE_FOUND> <RELEASE_FIXED TITLE="Version Closed"></RELEASE_FIXED> <RELEASE_STATUS TITLE="Release Status">Open</RELEASE_STATUS> </RELEASE_RECORD> </PROBLEM_RECORD> <PROBLEM_RECORD> <ID TITLE="Bug #">12118</ID> <SHORT_DESCR TITLE="Title"><![CDATA[Another problem]]></SHORT_DESCR> <SEVERITY_LEVEL TITLE="Severity">01 sev</SEVERITY_LEVEL> <PRIORITY TITLE="Priority">1</PRIORITY> <PRODUCT_NAME TITLE="Product">NetOp</PRODUCT_NAME> <DATE_CREATED TITLE="Created">14-FEB-01</DATE_CREATED> <OWNER TITLE="Owner">CARL.KOPPEL</OWNER> <TIMESTAMP TITLE="Last Modified">21-APR-01</TIMESTAMP> <ASSIGNED_TO TITLE="Assigned To">CARL.KOPPEL</ASSIGNED_TO> <PRIVACY TITLE="View">Private</PRIVACY> <CATEGORY TITLE="Category">Software</CATEGORY> <RESOLUTION TITLE="Disposition"></RESOLUTION> <DATE_CLOSED TITLE="Date Closed"></DATE_CLOSED> <ORIGINATOR TITLE="Originator">CARL.KOPPEL</ORIGINATOR> <ORIGINATOR_NAME TITLE="Originator">Carl Koppel</ORIGINATOR_NAME> <MODULE_RECORD> <MODULE_ID TITLE="Module">Client</MODULE_NAME> </MODULE_RECORD> <RELEASE_RECORD> <RELEASE_FOUND TITLE="Version Open">Framework 1.1</RELEASE_FOUND> <RELEASE_FIXED TITLE="Version Closed"></RELEASE_FIXED> <RELEASE_STATUS TITLE="Release Status">Closed</RELEASE_STATUS> </RELEASE_RECORD> </PROBLEM_RECORD> </EXTRAVIEW_RESULTS> |
Note that if you do not have permission to view any of these fields, they will not appear in the output from the action.
This action purposely returns only a small number of fields from the database. If you require additional fields, you can parse the ID out of the returned information and then use the get action to read the remaining fields within the database.
You should be careful in your use of this action as it can conceivably return extremely large result sets to you.
<TABLE cellpadding="2" cellspacing="2" border="1" bordercolor="#FFCCCC">
<TR bgcolor="#CCCCFF"> <TD align=right width=80><font size="-1">Defect # </font></TD> <TD width=800><font size="-1">__TAG_ID__</font></TD> </TR> <TR> <TD align=right><font size="-1">Title</font></TD> <TD><font size="-1">__TAG_SHORT_DESCR__</font></TD> </TR> <TR> <TD align=right><font size="-1">Product</font></TD> <TD><font size="-1">__TAG_PRODUCT_NAME__</font></TD> </TR> <TR> <TD align=right><font size="-1">Description</font></TD> <TD> <!-- __DESCRIPTION__ --> <PRE> __TAG_DESCRIPTION_TEXT__ </PRE> </TD> </TR> <TR> <TD align=right><font size="-1">Comments</font></TD> <TD> <!-- __COMMENTS__ --> <PRE> <b>__TAG_COMMENTS_USER__: __TAG_COMMENTS_TIMESTAMP__</b> <br> __TAG_COMMENTS_TEXT__ </PRE> </TD> </TR> </TABLE> |
<date> || <date> - <date> || -<date> || <date>-
The latter three are date ranges; rangestart to rangestop, rangestop, and rangestart respectively.
Where <date> is:
<unquoted date> || <sq><unquoted date><sq> || <dq><unquoted date><dq>
where <dq> ::= " (a double quote)
and <sq> := ' (a single quote)
A date may contain a dash if it appears in quotes. Otherwise, a dash is not permitted except as a date range signifier.