Due Date - From Parent Ticket to Child Ticket
Looking for a way to get items to flow from a Parent Ticket to a Child Ticket - specifically the Due Date field. We have a Parent ticket for new hires/changes/terminates, that when submitted, creates 3 child tickets, which are farmed out to different members in the IT team. The Due Date is not coming through for some reason, and is vital to the ticket.
Thanks.
FYI - I do not know SQL at all - so be gentle....lol.
3 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Hobbsy
9 years ago
So we have set up a rule that will copy data from the parent to the child, I have updated it so that it also includes the Due Date field as requested. So you may want to remove the custom fields
SELECT
UPDATE
Here is what we have:
select HD_TICKET.ID
from
HD_TICKET
join HD_TICKET_CHANGE HTC on HTC.HD_TICKET_ID = HD_TICKET.ID
left join HD_TICKET_CHANGE_FIELD HTCF on HTCF.HD_TICKET_CHANGE_ID = HTC.ID
where
HD_TICKET.PARENT_ID != 0 /* only for tix with parent set */
and
(HD_TICKET.MODIFIED = HD_TICKET.CREATED /* only new tix */
or
(HTCF.FIELD_CHANGED = 'PARENT_ID'
and HTCF.AFTER_VALUE != 0 ) /* or tix that have parent assigned/changed later */
)
and HTC.ID = <CHANGE_ID> - hutcha4113 9 years ago