Description
The WorkflowItem.associated_tickets object is an item that allows manipulation of the current WorkflowItem's (activity's) associated tickets.
WorkflowItem.associated_tickets Methods
Property | Parameters | Comments |
---|---|---|
associated_tickets.add( type, id ) | type: the object type of the ticket to link, id: the ticket's id, can be null for new ticket |
Adds the new or existing item to the activity's associated tickets. |
associated_tickets.add( form_name) | form_name: the name of the form to link to | Adds a link to a form associated with the activity's parent |
associated_tickets.add( entity ) | entity: a Database.entity | Adds entity to the activity's associated tickets |
associated_tickets.delete( type, id ) | type: the object type of the ticket to disassociate, id: the ticket's id |
Removes the item from the activity's associated ticket list, does not delete the underlying entity |
associated_tickets.delete( form_name) | form_name: the name of the form | Disassociates the parent's form from the current activity |
associated_tickets.delete( entity ) | entity: a Database.entity | Removes the item for the activity's associated ticket list, does not delete the underlying entity |
associated_tickets.find( { type: ..., id:..., form:... } ) | Returns an enumerable list of associated tickets currently attached to this activity, matching the entered criteria |
Example Usage(s)
the following code will be used throughout the examples below