Using Third-Party ITS Keys : Using Third-Party ITS Keys in the CLI

Using Third-Party ITS Keys in the CLI
Once the schema has been configured as described in the previous section, you use third-party ITS keys with a variety of AccuRev CLI input commands by specifying the new “-3” switch in addition to the traditional “-I” switch (for example “-3 -I US23407”). Note that you can also still use AccuWork issue numbers by using the traditional “-I” switch by itself, but you cannot specify both on the same command line.
Here are the AccuRev commands that accept the -3 switch:
Here are some examples of using the promote command with the -3 switch:
Promote a file and associate it with an issue using the third-party issue key:
accurev promote -I <3rd_pty_key> -3 <element_name>
Promote a file and associate it with several issues using third-party issue keys:
accurev promote -I "<3rd_pty_key_1> <3rd_pty_key_2> <3rd_pty_key_3>"
-3 <element_name>
You can also use the third-party keys with the -Fx switch for XML. For example, to promote a file using the -Fx switch and associate it with several issues using third-party issue keys:
accurev promote -Fx -l <xml_filename>
where the XML file has the following format:
<issues third_party=”true”>
<id>[3rd_pty_key_1]</id>
<id>[3rd_pty_key_2]</id>
<id>[3rd_pty_key_3]</id>
</issues>
 

AccuRev, Inc.
Phone: 781-861-8700
Fax: 781-861-8704
support@accurev.com