Skip to content

Function: findObjectTickets() ​

ts
function findObjectTickets(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  allTicketsQuery?: string;
  tickets?: object[];
}>;

Defined in: src/assetsServer/api/connectedTickets.ts:6

Retrieve all tickets connected to the specified object.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ filterId?: string; id: string; limit?: string; xoauth_requestor_id?: string; }-
parameters.filterId?stringFilter the tickets based on the filter ID. If filterId is not specified then no filter will be used. In the context of Jira the filterId will be the ID on an existing JQL filter.
parameters.id?stringThe ID of the object to retrieve tickets for.
parameters.limit?stringLimit the result set to the amount of objects. If the limit is not specified all connected tickets will be returned. Unlimited search is discouraged for performance reasons. If the limit is specified, it should not be higher than the max result window configured for the underlying search engine.
parameters.xoauth_requestor_id?string-
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; allTicketsQuery?: string; tickets?: object[]; }>