Running a Dispatch query from the command line.

0 Likes

Running a Dispatch query from the command line.
QUESTION:
How to run a Dispatch query from the command line? For example, I want to run a query on all new issues.

ANSWER:
Create an xml file and add the following data.

<queryIssue issueDB = "DEPOT_NAME" useAlt = "false" useAltQuery = "false">
<AND>
<condition>FID# == &quot;STATE&quot;</condition>
</AND>
</queryIssue>

You will need to:
1. Substitute DEPOT_NAME with the name of the depot you are querying.
2. Substitute FID# with the status field id number.
3. Substitute STATE with the state of the Dispatch issue.

Here is the syntax to run the query from the command line.

If you are executing this command from the server run:
accurev xml < queryIssue.xml

From a client you can run:
accurev xml -l queryIssue.xml


For more information contact AccuRev Support

Comment List
Anonymous
Related Discussions
Recommended