[rt-users] REST RefersTo / ReferredToBy
Edward Frye
rt at edwardfrye.com
Tue Aug 30 15:05:03 EDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110830/8e3ce2b5/attachment.htm>
More information about the rt-users
mailing list