n8n-nodes-redmine
Version:
Redmine node for n8n
433 lines • 14.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.issueGetAllOperations = void 0;
exports.issueGetAllOperations = [
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: ['issue'],
operation: ['getAll'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['issue'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
},
default: 50,
description: 'Max number of results to return',
},
{
displayName: 'Offset',
name: 'offset',
type: 'number',
displayOptions: {
show: {
resource: ['issue'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
minValue: 0,
},
default: 0,
description: 'Number of issues to skip in response',
},
{
displayName: 'Sort',
name: 'sort',
type: 'string',
displayOptions: {
show: {
resource: ['issue'],
operation: ['getAll'],
},
},
default: '',
placeholder: 'created_on:desc',
description: 'Column to sort by. Append :desc to invert the order (e.g., created_on:desc).',
},
{
displayName: 'Include',
name: 'include',
type: 'multiOptions',
displayOptions: {
show: {
resource: ['issue'],
operation: ['getAll'],
},
},
options: [
{
name: 'Attachments',
value: 'attachments',
description: 'Include attachments (Since Redmine 3.4.0)',
},
{
name: 'Children',
value: 'children',
description: 'Include child issues',
},
{
name: 'Journals',
value: 'journals',
description: 'Include issue history',
},
{
name: 'Relations',
value: 'relations',
description: 'Include related issues',
},
{
name: 'Watchers',
value: 'watchers',
description: 'Include watchers',
}
],
default: [],
description: 'Associated data to include in the response',
},
{
displayName: 'Filters',
name: 'filters',
type: 'collection',
placeholder: 'Add Filter',
default: {},
displayOptions: {
show: {
resource: ['issue'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Assigned To ID',
name: 'assigned_to_id',
type: 'string',
default: '',
description: 'Get issues assigned to the given user ID. Use "me" to get issues assigned to yourself.',
},
{
displayName: 'Author ID',
name: 'author_id',
type: 'string',
default: '',
description: 'Get issues created by the given user ID',
},
{
displayName: 'Category ID',
name: 'category_id',
type: 'string',
default: '',
description: 'Get issues with the given category ID',
},
{
displayName: 'Created On',
name: 'filterByCreationDate',
type: 'boolean',
default: true,
description: 'Whether to filter issues by creation date',
},
{
displayName: 'Created On (Range) End',
name: 'creationDateEnd',
type: 'dateTime',
displayOptions: {
show: {
filterByCreationDate: [true],
creationDateFilterType: ['range'],
},
},
default: '',
description: 'End date of the range',
},
{
displayName: 'Created On (Range) Start',
name: 'creationDateStart',
type: 'dateTime',
displayOptions: {
show: {
filterByCreationDate: [true],
creationDateFilterType: ['range'],
},
},
default: '',
description: 'Start date of the range',
},
{
displayName: 'Created On Filter Type',
name: 'creationDateFilterType',
type: 'options',
displayOptions: {
show: {
filterByCreationDate: [true],
},
},
options: [
{
name: 'Exact Date',
value: 'exact',
},
{
name: 'Date Range',
value: 'range',
},
{
name: 'After Date',
value: 'after',
},
{
name: 'Before Date',
value: 'before',
},
],
default: 'after',
description: 'Filter type for creation date',
},
{
displayName: 'Created On Value',
name: 'creationDate',
type: 'dateTime',
displayOptions: {
show: {
filterByCreationDate: [true],
creationDateFilterType: ['exact', 'after', 'before'],
},
},
default: '',
description: 'The date to filter by',
},
{
displayName: 'Custom Fields',
name: 'customFields',
placeholder: 'Add Custom Field Filter',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
default: {},
options: [
{
name: 'field',
displayName: 'Field',
values: [
{
displayName: 'Field ID',
name: 'id',
type: 'string',
default: '',
description: 'ID of the custom field (without cf_ prefix)',
placeholder: '10',
},
{
displayName: 'Field Value',
name: 'value',
type: 'string',
default: '',
description: 'Value of the custom field',
},
],
},
],
description: 'Filter by custom fields. The custom field must have "Used as a filter" option enabled.',
},
{
displayName: 'Custom Status ID',
name: 'custom_status_id',
type: 'string',
displayOptions: {
show: {
status_id: ['custom'],
},
},
default: '',
description: 'Enter a specific status ID',
},
{
displayName: 'Fixed Version ID',
name: 'fixed_version_id',
type: 'string',
default: '',
description: 'Get issues with the given fixed version ID',
},
{
displayName: 'Issue ID',
name: 'issue_id',
type: 'string',
default: '',
description: 'Get issue with the given ID or multiple issues by ID using comma to separate',
},
{
displayName: 'Parent ID',
name: 'parent_id',
type: 'string',
default: '',
description: 'Get issues whose parent issue has the given ID',
},
{
displayName: 'Priority ID',
name: 'priority_id',
type: 'string',
default: '',
description: 'Get issues with the given priority ID',
},
{
displayName: 'Project ID',
name: 'project_id',
type: 'string',
default: '',
description: 'The ID of the project to get issues from',
},
{
displayName: 'Status ID',
name: 'status_id',
type: 'options',
options: [
{
name: 'Open',
value: 'open',
description: 'Open issues only',
},
{
name: 'Closed',
value: 'closed',
description: 'Closed issues only',
},
{
name: 'All',
value: '*',
description: 'Both open and closed issues',
},
{
name: 'Custom',
value: 'custom',
description: 'Enter a specific status ID',
},
],
default: 'open',
description: 'Filter issues by status',
},
{
displayName: 'Subject',
name: 'subject',
type: 'string',
default: '',
description: 'Get issues with the given subject (exact match)',
},
{
displayName: 'Subproject ID',
name: 'subproject_id',
type: 'string',
default: '',
description: 'Get issues from the subproject with the given ID. Use project_id=XXX&subproject_id=!* to get only issues of a given project with none of its subprojects.',
},
{
displayName: 'Target Version ID',
name: 'target_version_id',
type: 'string',
default: '',
description: 'Get issues with the given target version ID',
},
{
displayName: 'Tracker ID',
name: 'tracker_id',
type: 'string',
default: '',
description: 'The tracker ID to filter issues by',
},
{
displayName: 'Updated On',
name: 'filterByUpdatedDate',
type: 'boolean',
default: true,
description: 'Whether to filter issues by updated date',
},
{
displayName: 'Updated On (Range) End',
name: 'updatedDateEnd',
type: 'dateTime',
displayOptions: {
show: {
filterByUpdatedDate: [true],
updatedDateFilterType: ['range'],
},
},
default: '',
description: 'End date of the range',
},
{
displayName: 'Updated On (Range) Start',
name: 'updatedDateStart',
type: 'dateTime',
displayOptions: {
show: {
filterByUpdatedDate: [true],
updatedDateFilterType: ['range'],
},
},
default: '',
description: 'Start date of the range',
},
{
displayName: 'Updated On Filter Type',
name: 'updatedDateFilterType',
type: 'options',
displayOptions: {
show: {
filterByUpdatedDate: [true],
},
},
options: [
{
name: 'Exact Date',
value: 'exact',
},
{
name: 'Date Range',
value: 'range',
},
{
name: 'After Date',
value: 'after',
},
{
name: 'Before Date',
value: 'before',
},
],
default: 'after',
description: 'Filter type for updated date',
},
{
displayName: 'Updated On Value',
name: 'updatedDate',
type: 'dateTime',
displayOptions: {
show: {
filterByUpdatedDate: [true],
updatedDateFilterType: ['exact', 'after', 'before'],
},
},
default: '',
description: 'The date to filter by',
},
],
},
];
//# sourceMappingURL=Issue.getAll.Operations.js.map