2020-04-23 22:59:19 -07:00
|
|
|
import {
|
|
|
|
IDataObject,
|
2021-01-29 11:08:27 -08:00
|
|
|
} from 'n8n-workflow';
|
2019-11-27 22:10:41 -08:00
|
|
|
|
|
|
|
export interface IFields {
|
|
|
|
assignee?: IDataObject;
|
|
|
|
description?: string;
|
2020-04-23 22:59:19 -07:00
|
|
|
issuetype?: IDataObject;
|
|
|
|
labels?: string[];
|
2019-11-27 22:10:41 -08:00
|
|
|
parent?: IDataObject;
|
2020-04-23 22:59:19 -07:00
|
|
|
priority?: IDataObject;
|
|
|
|
project?: IDataObject;
|
|
|
|
summary?: string;
|
2021-04-02 06:31:25 -07:00
|
|
|
reporter?: IDataObject;
|
2021-11-19 06:46:48 -08:00
|
|
|
components?: IDataObject[];
|
2019-11-27 22:10:41 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IIssue {
|
|
|
|
fields?: IFields;
|
2020-04-23 22:59:19 -07:00
|
|
|
transition?: IDataObject;
|
2019-11-27 22:10:41 -08:00
|
|
|
}
|
2019-11-29 14:30:00 -08:00
|
|
|
|
|
|
|
export interface INotify {
|
|
|
|
subject?: string;
|
|
|
|
textBody?: string;
|
|
|
|
htmlBody?: string;
|
|
|
|
to?: INotificationRecipients;
|
|
|
|
restrict?: NotificationRecipientsRestrictions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INotificationRecipients {
|
|
|
|
reporter?: boolean;
|
|
|
|
assignee?: boolean;
|
|
|
|
watchers?: boolean;
|
|
|
|
voters?: boolean;
|
|
|
|
users?: IDataObject[];
|
|
|
|
groups?: IDataObject[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface NotificationRecipientsRestrictions {
|
|
|
|
groups?: IDataObject[];
|
|
|
|
}
|