[rt-users] Entering Multiple Select Items in a Custom Field through REST Interface

Kevin Falcone falcone at bestpractical.com
Mon Nov 7 10:44:41 EST 2011


On Mon, Nov 07, 2011 at 12:54:57PM +1100, gekkoman wrote:
> have tried multiple variations on this theme to no avail.
> 
> I suspect a delve into the code base will be required.
> 
> My best guess is this feature is not yet supported.
> 
> One would be fine with this, except for the fact that if one edits the
> ticket at a later stage it by default deletes the custom entry field of
> content which is not ok.

As far as I know, the test suite has had tests for multiple value CFs
for a while.  If you believe you've found a bug, a patch extending
t/web/command_line.t would be really helpful.

-kevin

> > sorry, noticed the syntax doesn't make sense O_o
> >
> > Should be more like this:
> >
> > set CF-'Field A'='item 1','item 2','item 3'
> >
> >
> > -- Bart
> >
> >
> > 2011/11/6 Bart <bart at pleh.info>
> >
> >> Hi,
> >>
> >> I don't really have a setup where I can test this but you've mentioned
> >> that the REST interface returns comma delimited list, have you tried
> >> entering the CF value with a comma delimited entry? Something like this:
> >>
> >> CF-'Field A': 'item 1', 'item 2', 'item 3'
> >>
> >> When I have some time I'll see if I can test this in my testing
> >> environment.
> >>
> >> -- Bart
> >>
> >>
> >>
> >> 2011/11/5 gekkoman <gekkoman at illimitable.com>
> >>
> >>> Greetings,
> >>>
> >>> Is this possible?
> >>>
> >>> I can populate the custom field easily enough through the REST
> >>> interface
> >>> with the CF.{field name} format.
> >>>
> >>> Don't seem to be able to resolve this back to selections in a multiple
> >>> entry CF.
> >>>
> >>> The REST interface itself returns comma delimited list when displaying
> >>> a
> >>> ticket with a multiple item CF selection, so it seems sensible to be
> >>> able to pass the same result back to RT and have it yield the original
> >>> result. This does not appear to work.
> >>>
> >>>
> >>> More appropriate may be the ability to  pass repetitive key definitions
> >>> eg
> >>> CF.{field name A}: Select Item 1
> >>> CF.{field name A}: Select Item 2
> >>> ..
> >>>
> >>>
> >>> Regards
> >>>
> >>> Tarek
> >>>
> >>> --
> >>> This message has been scanned for viruses and
> >>> dangerous content by MailScanner, and is
> >>> believed to be clean.
> >>>
> >>> --------
> >>> RT Training Sessions (http://bestpractical.com/services/training.html)
> >>> *  Barcelona, Spain  November 28 & 29, 2011
> >>>
> >>
> >>
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> > --------
> > RT Training Sessions (http://bestpractical.com/services/training.html)
> > *  Barcelona, Spain — November 28 & 29, 2011
> 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Barcelona, Spain  November 28 & 29, 2011
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111107/b6ced691/attachment.sig>


More information about the rt-users mailing list