REST RefersTo / ReferredToBy

All,

I am working on some custom scripts for event management and attempting to
automatically link tickets
that refer to the same custom field. Creating the ticket and getting a list
of tickets is easy, but when I link
the ticket with a post containing

Say I just created 1236 and I want to refer to 1234 and 1235

content=id: ticket/1236/links
RefersTo: fsck.com-rt://rt/ticket/1234

The post works, However, if I try with:

content=id: ticket/1236/links
RefersTo: fsck.com-rt://rt/ticket/1234, fsck.com-rt://rt/ticket/1235

I only get the first one, same for

content=id: ticket/1236/links
RefersTo: fsck.com-rt://rt/ticket/1234
RefersTo: fsck.com-rt://rt/ticket/1235

Now, if I do two separate posts

content=id: ticket/1236/links
RefersTo: fsck.com-rt://rt/ticket/1234

content=id: ticket/1236/links
RefersTo: fsck.com-rt://rt/ticket/1235

The history of the ticket says the first link is created, then it is
deleted. The same thing happens when I
try it the other way around.

content=id: ticket/1234/links
ReferredToBy: fsck.com-rt://rt/ticket/1236

content=id: ticket/1235/links
ReferredToBy: fsck.com-rt://rt/ticket/1236

I know it’s possible to link a ticket with “Refers To” from the web-ui, how
can I do it using REST?

Thanks,
Edward

The post works, However, if I try with:

content=id: ticket/1236/links
RefersTo: fsck.com-rt://rt/ticket/1234, fsck.com-rt://rt/ticket/1235

On a quick glance, this looks like a very longstanding bug unnoticed in
the REST interface.

I’m bouncing your message into our bug tracker.

Thomas