import Tembo from '@tembo-io/sdk';
const client = new Tembo({
apiKey: 'My API Key',
});
const response = await client.task.search({ q: 'authentication bug' });
console.log(response.issues);{
"issues": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"meta": {
"totalCount": 123,
"totalPages": 123,
"currentPage": 123,
"pageSize": 123,
"hasNext": true,
"hasPrevious": true
},
"query": "<string>"
}Search issues for the organization with pagination
import Tembo from '@tembo-io/sdk';
const client = new Tembo({
apiKey: 'My API Key',
});
const response = await client.task.search({ q: 'authentication bug' });
console.log(response.issues);{
"issues": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"meta": {
"totalCount": 123,
"totalPages": 123,
"currentPage": 123,
"pageSize": 123,
"hasNext": true,
"hasPrevious": true
},
"query": "<string>"
}Search query to find issues by title or description
1"authentication bug"
Number of items to return per page (max 100)
1 <= x <= 10010
Page number to retrieve (starts from 1)
x >= 11
Was this page helpful?