<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      I have found that you can set the custom field value for a ticket
      with the following command:<br>
      <br>
      rt edit -t ticket [ID] set CF-[ID]='value'<br>
      <br>
      Where the first ID is the ticket number and second ID is the
      number of the custom field.<br>
      <br>
      However you cannot use the same syntax to retrieve the value,
      like:<br>
      <br>
      rt show -t ticket -f CF-[ID] [ID]<br>
      <br>
      Where the first ID is the number of the custom field and the
      second ID is the ticket number.<br>
      <br>
      However, it does work when you use the custom field name instead
      of the ID, like:<br>
      <br>
      rt show -t ticket -f CF-[Name] [ID]<br>
      <br>
      Is this a bug?<br>
      <br>
      --<br>
      <div class="moz-signature">
        <div style="width: 700px;">
          <div>
            <p style="margin-top:0; margin-bottom:10px; margin-right:0;
              margin-left: 5px; color:#32477F; font-size:11px;
              font-family:Arial;">Met vriendelijke groet / Best regards,<br>
              <br>
              Hans Vos<br>
              <br>
              System Administrator</p>
          </div>
          <div>
            <hr style="color:#96C13D; border-style:solid; border-width:
              1px;"> </div>
          <div>
            <table width="100%">
              <tbody>
                <tr>
                  <td width="35%">
                    <p style="font-size:11px; font-family:Arial;
                      color:#32477F; margin-bottom:5px;"><span
                        style="color:#96C13D; font-weight:bold;
                        padding-right: 10px;">E</span> <a
                        class="moz-txt-link-abbreviated"
                        href="mailto:h.vos@drecomm.nl">h.vos@drecomm.nl</a></p>
                    <p style="font-size:11px; font-family:Arial;
                      color:#32477F; margin-bottom:5px;"><span
                        style="color:#96C13D; font-weight:bold;
                        padding-right: 10px;">T</span> 050-577 5822</p>
                  </td>
                  <td width="65%"><img
                      src="cid:part2.09080909.05050706@drecomm.nl"
                      alt="drecomm" title="drecomm" height="70"> </td>
                </tr>
              </tbody>
            </table>
          </div>
          <div>
            <hr style="color:#96C13D; border-style:dashed; border-width:
              1px;"> </div>
          <div style="margin-bottom: 15px;">
            <h1 style="color:#96C13D; text-transform:uppercase;
              margin-bottom:10px; font-size:12px; font-family:Arial;
              font-weight:bold;">Vestiging Groningen</h1>
            <table width="100%;">
              <tbody>
                <tr>
                  <td style="font-weight:bold; width:33%;
                    font-size:11px; font-family:Arial; color:#32477F;">Hoendiep

                    208</td>
                  <td style="width:33%; font-size:11px;
                    font-family:Arial; color:#32477F;"><span
                      style="color:#96C13D; font-weight:bold;
                      padding-right: 10px;">T</span> +31 (0)50 577 58 22</td>
                  <td style="width:33%; font-size:11px;
                    font-family:Arial; color:#32477F;"><span
                      style="color:#96C13D; font-weight:bold;
                      padding-right: 10px;">Bekijk onze actuele
                      projecten</span></td>
                </tr>
                <tr>
                  <td style="font-weight:bold; width:33%;
                    font-size:11px; font-family:Arial; color:#32477F;">9745

                    ED Groningen</td>
                  <td style="width:33%; font-size:11px;
                    font-family:Arial; color:#32477F;"><span
                      style="color:#96C13D; font-weight:bold;
                      padding-right: 10px;">F</span> +31 (0)50 577 58 23</td>
                  <td style="font-weight:bold; width:33%;
                    font-size:11px; font-family:Arial; color:#32477F;"><a
                      href="http://www.drecomm.nl"
                      style="text-decoration:none; color:inherit;">www.drecomm.nl</a>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
          <div>
            <hr style="color:#96C13D; border-style:solid; border-width:
              1px;"> </div>
        </div>
      </div>
      <br>
      Op 12-9-2012 22:30, Hans Vos schreef:<br>
    </div>
    <blockquote cite="mid:5050F0EC.2000200@drecomm.nl" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hello,<br>
      <br>
      I am trying to get the value of a custom field from a specified
      user.<br>
      <br>
      I can get the normal details with the command "rt show user/22".<br>
      <br>
      But I would like to retrieve the current value (or lack thereof)
      of a custom field that I created (simple text field). How can I do
      this?<br>
      <br>
      If this is not possible using the API is there perhaps another
      way? I tried getting directly from the database. The only problem
      is that when you remove the value the latest value is still
      present in the '
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      ObjectCustomFieldValues' table. I currently have a query that gets
      the latest value from this table.<br>
      <br>
      --<br>
      Kind regards,<br>
      <br>
      Hans Vos<br>
    </blockquote>
  </body>
</html>