ccollab admin review-xml

Top  Previous  Next

Usage: ccollab [global-options] admin review-xml [--xpath <value> --xsl-file <value>] <review> [<review> ...]

 

review-xml - Extract the state of a review in XML form

 

Command Options

Option

Required?

Description

--xpath <value>

N

XPath expression to evaluate against XML

--xsl-file <value>

N

XSL file to use to post-process XML, or '-' to read XSL from STDIN

<review> [<review> ...]

Y

Reviews to dump to XML

 

You may specify an XPath expression to evaluate against the resulting XML.

 

Examples:

 

       Get ID of 'last' review:

       ccollab admin review-xml last --xpath string(//reviews/review/@reviewId)

 

       Get title of review 1354:

       ccollab admin review-xml 1354 --xpath //reviews/review/general/title/text()

 

       Get number of defects in review 2478 with 'Major' severity:

       ccollab admin review-xml 2478 --xpath count(//reviews/review/defects/defect[custom-defect-fields/severity='Major'])

 

You may alternately specify an XSL file to post-process the XML.