2021-01-29 11:08:27 -08:00
import {
2020-12-29 02:33:13 -08:00
INodeProperties ,
} from 'n8n-workflow' ;
2019-11-27 14:42:28 -08:00
2021-12-03 00:44:16 -08:00
export const issueOperations : INodeProperties [ ] = [
2019-11-27 14:42:28 -08:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
} ,
} ,
options : [
2021-04-09 23:05:21 -07:00
{
name : 'Changelog' ,
value : 'changelog' ,
description : 'Get issue changelog' ,
} ,
2019-11-27 14:42:28 -08:00
{
name : 'Create' ,
value : 'create' ,
description : 'Create a new issue' ,
} ,
2019-11-29 14:30:00 -08:00
{
2021-04-09 23:05:21 -07:00
name : 'Delete' ,
value : 'delete' ,
description : 'Delete an issue' ,
2019-11-29 14:30:00 -08:00
} ,
{
name : 'Get' ,
value : 'get' ,
description : 'Get an issue' ,
} ,
2020-02-02 07:01:56 -08:00
{
name : 'Get All' ,
value : 'getAll' ,
description : 'Get all issues' ,
} ,
2019-11-29 14:30:00 -08:00
{
name : 'Notify' ,
value : 'notify' ,
2020-07-09 05:33:05 -07:00
description : 'Create an email notification for an issue and add it to the mail queue' ,
2019-11-29 14:30:00 -08:00
} ,
{
2020-04-23 22:59:19 -07:00
name : 'Status' ,
2019-11-29 14:30:00 -08:00
value : 'transitions' ,
2020-07-09 05:33:05 -07:00
description : ` Return either all transitions or a transition that can be performed by the user on an issue, based on the issue's status ` ,
2019-11-29 14:30:00 -08:00
} ,
{
2021-04-09 23:05:21 -07:00
name : 'Update' ,
value : 'update' ,
description : 'Update an issue' ,
2019-11-29 14:30:00 -08:00
} ,
2019-11-27 14:42:28 -08:00
] ,
default : 'create' ,
description : 'The operation to perform.' ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2019-11-27 14:42:28 -08:00
2021-12-03 00:44:16 -08:00
export const issueFields : INodeProperties [ ] = [
2019-11-27 14:42:28 -08:00
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:create */
/* -------------------------------------------------------------------------- */
2019-11-27 14:42:28 -08:00
{
displayName : 'Project' ,
name : 'project' ,
type : 'options' ,
2021-12-03 00:44:16 -08:00
default : '' ,
2019-11-27 14:42:28 -08:00
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
2020-10-22 06:46:03 -07:00
'create' ,
] ,
2019-11-27 14:42:28 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getProjects' ,
2020-05-04 10:35:02 -07:00
loadOptionsDependsOn : [
'jiraVersion' ,
] ,
2019-11-27 14:42:28 -08:00
} ,
description : 'Project' ,
} ,
{
displayName : 'Issue Type' ,
name : 'issueType' ,
type : 'options' ,
2021-12-03 00:44:16 -08:00
default : '' ,
2019-11-27 14:42:28 -08:00
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
2020-10-22 06:46:03 -07:00
'create' ,
] ,
2019-11-27 14:42:28 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getIssueTypes' ,
2020-04-23 22:59:19 -07:00
loadOptionsDependsOn : [
'project' ,
] ,
2019-11-27 14:42:28 -08:00
} ,
description : 'Issue Types' ,
} ,
{
displayName : 'Summary' ,
name : 'summary' ,
type : 'string' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'create' ,
] ,
} ,
} ,
default : '' ,
description : 'Summary' ,
} ,
2019-11-29 14:30:00 -08:00
{
displayName : 'Additional Fields' ,
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'create' ,
] ,
} ,
} ,
options : [
2019-12-01 13:47:53 -08:00
{
2020-04-23 22:59:19 -07:00
displayName : 'Assignee' ,
name : 'assignee' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getUsers' ,
} ,
default : '' ,
description : 'Assignee' ,
} ,
{
displayName : 'Description' ,
name : 'description' ,
2019-12-01 13:47:53 -08:00
type : 'string' ,
default : '' ,
2020-04-23 22:59:19 -07:00
description : 'Description' ,
2019-12-01 13:47:53 -08:00
} ,
2021-11-19 06:46:48 -08:00
{
displayName : 'Components' ,
name : 'componentIds' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getProjectComponents' ,
loadOptionsDependsOn : [
'project' ,
] ,
} ,
default : [ ] ,
} ,
2021-01-29 11:08:27 -08:00
{
displayName : 'Custom Fields' ,
name : 'customFieldsUi' ,
type : 'fixedCollection' ,
default : '' ,
placeholder : 'Add Custom Field' ,
typeOptions : {
multipleValues : true ,
} ,
options : [
{
name : 'customFieldsValues' ,
displayName : 'Custom Field' ,
values : [
{
displayName : 'Field ID' ,
name : 'fieldId' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getCustomFields' ,
loadOptionsDependsOn : [
'project' ,
] ,
} ,
description : 'ID of the field to set.' ,
default : '' ,
} ,
{
displayName : 'Field Value' ,
name : 'fieldValue' ,
type : 'string' ,
description : 'Value of the field to set.' ,
default : '' ,
} ,
] ,
} ,
] ,
} ,
2019-11-29 14:30:00 -08:00
{
displayName : 'Labels' ,
name : 'labels' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getLabels' ,
} ,
default : [ ] ,
description : 'Labels' ,
2021-01-29 11:08:27 -08:00
displayOptions : {
2020-05-04 21:07:19 -07:00
show : {
'/jiraVersion' : [
'cloud' ,
] ,
} ,
} ,
} ,
{
displayName : 'Labels' ,
name : 'serverLabels' ,
type : 'string' ,
default : [ ] ,
description : 'Labels' ,
2021-01-29 11:08:27 -08:00
displayOptions : {
2020-05-04 21:07:19 -07:00
show : {
'/jiraVersion' : [
'server' ,
] ,
} ,
} ,
typeOptions : {
multipleValues : true ,
} ,
2019-11-29 14:30:00 -08:00
} ,
2020-04-23 22:59:19 -07:00
{
displayName : 'Parent Issue Key' ,
name : 'parentIssueKey' ,
type : 'string' ,
default : '' ,
description : 'Parent Issue Key' ,
} ,
2019-11-29 14:30:00 -08:00
{
displayName : 'Priority' ,
name : 'priority' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getPriorities' ,
} ,
2020-01-04 20:19:10 -08:00
default : '' ,
2019-11-29 14:30:00 -08:00
description : 'Priority' ,
} ,
2021-04-02 06:31:25 -07:00
{
displayName : 'Reporter' ,
name : 'reporter' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getUsers' ,
} ,
default : '' ,
description : 'Reporter' ,
} ,
2019-11-29 14:30:00 -08:00
{
displayName : 'Update History' ,
name : 'updateHistory' ,
type : 'boolean' ,
default : false ,
2021-10-27 13:00:13 -07:00
description : ` Whether the project in which the issue is created is added to the user's
2019-12-02 06:15:03 -08:00
Recently viewed project list , as shown under Projects in Jira . ` ,
2019-11-29 14:30:00 -08:00
} ,
] ,
} ,
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:update */
/* -------------------------------------------------------------------------- */
2019-11-29 14:30:00 -08:00
{
displayName : 'Issue Key' ,
name : 'issueKey' ,
type : 'string' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'update' ,
] ,
} ,
} ,
default : '' ,
description : 'Issue Key' ,
} ,
{
2019-12-01 13:47:53 -08:00
displayName : 'Update Fields' ,
name : 'updateFields' ,
2019-11-27 14:42:28 -08:00
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
2019-11-29 14:30:00 -08:00
'update' ,
2019-11-27 14:42:28 -08:00
] ,
} ,
} ,
options : [
2019-12-01 13:47:53 -08:00
{
2020-04-23 22:59:19 -07:00
displayName : 'Assignee' ,
name : 'assignee' ,
2019-12-01 13:47:53 -08:00
type : 'options' ,
typeOptions : {
2020-04-23 22:59:19 -07:00
loadOptionsMethod : 'getUsers' ,
2019-12-01 13:47:53 -08:00
} ,
default : '' ,
2020-04-23 22:59:19 -07:00
description : 'Assignee' ,
2019-12-01 13:47:53 -08:00
} ,
{
2020-04-23 22:59:19 -07:00
displayName : 'Description' ,
name : 'description' ,
2019-12-01 13:47:53 -08:00
type : 'string' ,
default : '' ,
2020-04-23 22:59:19 -07:00
description : 'Description' ,
2019-12-01 13:47:53 -08:00
} ,
2021-01-29 11:08:27 -08:00
{
displayName : 'Custom Fields' ,
name : 'customFieldsUi' ,
type : 'fixedCollection' ,
default : '' ,
placeholder : 'Add Custom Field' ,
typeOptions : {
multipleValues : true ,
} ,
options : [
{
name : 'customFieldsValues' ,
displayName : 'Custom Field' ,
values : [
{
displayName : 'Field ID' ,
name : 'fieldId' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getCustomFields' ,
loadOptionsDependsOn : [
'issueKey' ,
] ,
} ,
description : 'ID of the field to set.' ,
default : '' ,
} ,
{
displayName : 'Field Value' ,
name : 'fieldValue' ,
type : 'string' ,
description : 'Value of the field to set.' ,
default : '' ,
} ,
] ,
} ,
] ,
} ,
2019-12-01 13:47:53 -08:00
{
2020-04-23 22:59:19 -07:00
displayName : 'Issue Type' ,
name : 'issueType' ,
2021-04-09 23:05:21 -07:00
type : 'string' ,
2019-12-01 13:47:53 -08:00
default : '' ,
2020-04-23 22:59:19 -07:00
description : 'Issue Types' ,
2019-12-01 13:47:53 -08:00
} ,
2019-11-27 14:42:28 -08:00
{
displayName : 'Labels' ,
name : 'labels' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getLabels' ,
} ,
default : [ ] ,
description : 'Labels' ,
2021-01-29 11:08:27 -08:00
displayOptions : {
2020-05-04 21:07:19 -07:00
show : {
'/jiraVersion' : [
'cloud' ,
] ,
} ,
} ,
} ,
{
displayName : 'Labels' ,
name : 'serverLabels' ,
type : 'string' ,
default : [ ] ,
description : 'Labels' ,
2021-01-29 11:08:27 -08:00
displayOptions : {
2020-05-04 21:07:19 -07:00
show : {
'/jiraVersion' : [
'server' ,
] ,
} ,
} ,
typeOptions : {
multipleValues : true ,
} ,
2019-11-27 14:42:28 -08:00
} ,
2020-04-23 22:59:19 -07:00
{
displayName : 'Parent Issue Key' ,
name : 'parentIssueKey' ,
type : 'string' ,
default : '' ,
description : 'Parent Issue Key' ,
} ,
2019-11-27 14:42:28 -08:00
{
displayName : 'Priority' ,
name : 'priority' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getPriorities' ,
} ,
2020-01-04 20:19:10 -08:00
default : '' ,
2019-11-27 14:42:28 -08:00
description : 'Priority' ,
} ,
2021-04-02 06:31:25 -07:00
{
displayName : 'Reporter' ,
name : 'reporter' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getUsers' ,
} ,
default : '' ,
description : 'Reporter' ,
} ,
2019-11-27 14:42:28 -08:00
{
2020-04-23 22:59:19 -07:00
displayName : 'Summary' ,
name : 'summary' ,
type : 'string' ,
2020-01-04 20:19:10 -08:00
default : '' ,
2020-04-23 22:59:19 -07:00
description : 'Summary' ,
2019-11-27 14:42:28 -08:00
} ,
2019-11-27 22:10:41 -08:00
{
2020-04-23 22:59:19 -07:00
displayName : 'Status ID' ,
name : 'statusId' ,
2020-04-24 00:50:56 -07:00
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getTransitions' ,
} ,
2019-11-27 22:10:41 -08:00
default : '' ,
2020-04-23 22:59:19 -07:00
description : 'The ID of the issue status.' ,
2019-11-27 22:10:41 -08:00
} ,
2019-11-27 14:42:28 -08:00
] ,
} ,
2019-11-29 14:30:00 -08:00
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:delete */
/* -------------------------------------------------------------------------- */
2019-11-29 14:30:00 -08:00
{
displayName : 'Issue Key' ,
name : 'issueKey' ,
type : 'string' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'delete' ,
] ,
} ,
} ,
default : '' ,
description : 'Issue Key' ,
} ,
{
displayName : 'Delete Subtasks' ,
name : 'deleteSubtasks' ,
type : 'boolean' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'delete' ,
] ,
} ,
} ,
default : false ,
description : 'Delete Subtasks' ,
} ,
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:get */
/* -------------------------------------------------------------------------- */
2019-11-29 14:30:00 -08:00
{
displayName : 'Issue Key' ,
name : 'issueKey' ,
type : 'string' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'get' ,
] ,
} ,
} ,
default : '' ,
description : 'Issue Key' ,
} ,
{
2019-12-01 13:47:53 -08:00
displayName : 'Additional Fields' ,
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
2019-11-29 14:30:00 -08:00
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'get' ,
] ,
} ,
} ,
2019-12-01 13:47:53 -08:00
options : [
2020-04-23 22:59:19 -07:00
{
displayName : 'Expand' ,
name : 'expand' ,
type : 'string' ,
default : '' ,
2021-11-25 09:10:06 -08:00
description : ` <p>Use expand to include additional information about the issues in the response. This parameter accepts a comma-separated list. Expand options include:
< ul >
< li > < code > renderedFields < / code > Returns field values rendered in HTML format . < / li >
< li > < code > names < / code > Returns the display name of each field . < / li >
< li > < code > schema < / code > Returns the schema describing a field type . < / li >
< li > < code > transitions < / code > Returns all possible transitions for the issue . < / li >
< li > < code > editmeta < / code > Returns information about how each field can be edited . < / li >
< li > < code > changelog < / code > Returns a list of recent updates to an issue , sorted by date , starting from the most recent . < / li >
< li > < code > versionedRepresentations < / code > Returns a JSON array for each version of a field ' s value , with the highest number representing the most recent version . Note : When included in the request , the fields parameter is ignored . < / li >
< / ul > ` ,
2020-04-23 22:59:19 -07:00
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Fields' ,
name : 'fields' ,
type : 'string' ,
default : '' ,
2021-11-25 09:10:06 -08:00
description : ` A list of fields to return for the issue. This parameter accepts a comma-separated list. Use it to retrieve a subset of fields. Allowed values: <code>*all</code> Returns all fields. <code>*navigable</code> Returns navigable fields. Any issue field, prefixed with a minus to exclude. ` ,
2019-11-29 14:30:00 -08:00
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Fields By Key' ,
name : 'fieldsByKey' ,
type : 'boolean' ,
default : false ,
2021-11-25 09:10:06 -08:00
description : ` Indicates whether fields in fields are referenced by keys rather than IDs. This parameter is useful where fields have been added by a connect app and a field's key may differ from its ID. ` ,
2019-11-29 14:30:00 -08:00
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Properties' ,
name : 'properties' ,
type : 'string' ,
default : '' ,
2021-11-25 09:10:06 -08:00
description : ` A list of issue properties to return for the issue. This parameter accepts a comma-separated list. Allowed values: <code>*all</code> Returns all issue properties. Any issue property key, prefixed with a minus to exclude. Examples: <code>*all</code> Returns all properties. <code>*all</code>,-prop1 Returns all properties except prop1. <code>prop1,prop2</code> Returns prop1 and prop2 properties. This parameter may be specified multiple times. For example, properties=prop1,prop2& properties=prop3. ` ,
2019-11-29 14:30:00 -08:00
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Update History' ,
name : 'updateHistory' ,
type : 'boolean' ,
default : false ,
description : ` Whether the project in which the issue is created is added to the user's
Recently viewed project list , as shown under Projects in Jira . This also populates the
JQL issues search lastViewed field . ` ,
} ,
2020-10-22 06:46:03 -07:00
] ,
2019-11-29 14:30:00 -08:00
} ,
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:getAll */
/* -------------------------------------------------------------------------- */
2020-02-02 07:01:56 -08:00
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'getAll' ,
] ,
} ,
} ,
default : false ,
description : 'If all results should be returned or only up to a given limit.' ,
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'getAll' ,
] ,
returnAll : [
false ,
] ,
} ,
} ,
typeOptions : {
minValue : 1 ,
maxValue : 100 ,
} ,
default : 50 ,
description : 'How many results to return.' ,
} ,
{
displayName : 'Options' ,
name : 'options' ,
type : 'collection' ,
placeholder : 'Add Option' ,
displayOptions : {
show : {
operation : [
'getAll' ,
] ,
resource : [
'issue' ,
] ,
} ,
} ,
default : { } ,
options : [
{
displayName : 'Expand' ,
name : 'expand' ,
2021-10-19 15:37:30 -07:00
type : 'multiOptions' ,
2020-02-02 07:01:56 -08:00
default : '' ,
options : [
{
2020-02-06 19:03:29 -08:00
name : 'Changelog' ,
value : 'changelog' ,
description : 'Returns a list of recent updates to an issue, sorted by date, starting from the most recent.' ,
2020-02-02 07:01:56 -08:00
} ,
{
2020-02-06 19:03:29 -08:00
name : 'Editmeta' ,
value : 'editmeta' ,
description : 'Returns information about how each field can be edited' ,
2020-02-02 07:01:56 -08:00
} ,
{
2020-02-06 19:03:29 -08:00
name : 'Names' ,
value : 'names' ,
description : 'Returns the display name of each field' ,
2020-02-02 07:01:56 -08:00
} ,
{
name : 'Operations' ,
2020-02-06 19:03:29 -08:00
value : 'operations' ,
2020-02-02 07:01:56 -08:00
description : 'Returns all possible operations for the issue.' ,
} ,
{
2020-02-06 19:03:29 -08:00
name : 'Rendered Fields' ,
value : 'renderedFields' ,
description : ' Returns field values rendered in HTML format.' ,
2020-02-02 07:01:56 -08:00
} ,
{
2020-02-06 19:03:29 -08:00
name : 'Schema' ,
value : 'schema' ,
description : 'Returns the schema describing a field type.' ,
} ,
{
name : 'Transitions' ,
value : 'transitions' ,
description : ' Returns all possible transitions for the issue.' ,
2020-02-02 07:01:56 -08:00
} ,
{
name : 'Versioned Representations' ,
2020-02-06 19:03:29 -08:00
value : 'versionedRepresentations' ,
2020-02-02 07:01:56 -08:00
description : ` JSON array containing each version of a field's value ` ,
} ,
] ,
description : ` Use expand to include additional information about issues in the response ` ,
} ,
2020-02-06 19:03:29 -08:00
{
displayName : 'Fields' ,
name : 'fields' ,
type : 'string' ,
default : '*navigable' ,
2021-11-25 09:10:06 -08:00
description : ` A list of fields to return for each issue, use it to retrieve a subset of fields. This parameter accepts a comma-separated list. Expand options include: <code>*all</code> Returns all fields. <code>*navigable</code> Returns navigable fields. Any issue field, prefixed with a minus to exclude. ` ,
2020-02-06 19:03:29 -08:00
} ,
2020-02-02 07:01:56 -08:00
{
displayName : 'Fields By Key' ,
name : 'fieldsByKey' ,
type : 'boolean' ,
default : false ,
2021-11-25 09:10:06 -08:00
description : ` Indicates whether fields in fields are referenced by keys rather than IDs. This parameter is useful where fields have been added by a connect app and a field's key may differ from its ID. ` ,
2020-02-02 07:01:56 -08:00
} ,
2020-02-06 19:03:29 -08:00
{
displayName : ' JQL' ,
name : 'jql' ,
type : 'string' ,
default : '' ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
description : 'A JQL expression.' ,
} ,
2020-02-02 07:01:56 -08:00
] ,
} ,
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:changelog */
/* -------------------------------------------------------------------------- */
2019-11-29 14:30:00 -08:00
{
displayName : 'Issue Key' ,
name : 'issueKey' ,
type : 'string' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'changelog' ,
] ,
} ,
} ,
default : '' ,
description : 'Issue Key' ,
} ,
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'changelog' ,
] ,
} ,
} ,
default : false ,
description : 'If all results should be returned or only up to a given limit.' ,
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'changelog' ,
] ,
returnAll : [
false ,
] ,
} ,
} ,
typeOptions : {
minValue : 1 ,
maxValue : 100 ,
} ,
default : 50 ,
description : 'How many results to return.' ,
} ,
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:notify */
/* -------------------------------------------------------------------------- */
2019-11-29 14:30:00 -08:00
{
displayName : 'Issue Key' ,
name : 'issueKey' ,
type : 'string' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'notify' ,
] ,
} ,
} ,
default : '' ,
description : 'Issue Key' ,
} ,
{
2019-12-01 13:47:53 -08:00
displayName : 'JSON Parameters' ,
name : 'jsonParameters' ,
type : 'boolean' ,
default : false ,
description : '' ,
2019-11-29 14:30:00 -08:00
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'notify' ,
] ,
} ,
} ,
} ,
{
2019-12-01 13:47:53 -08:00
displayName : 'Additional Fields' ,
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
2019-11-29 14:30:00 -08:00
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'notify' ,
] ,
} ,
} ,
2019-12-01 13:47:53 -08:00
options : [
2020-04-23 22:59:19 -07:00
{
displayName : 'HTML Body' ,
name : 'htmlBody' ,
type : 'string' ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
default : '' ,
description : 'The HTML body of the email notification for the issue.' ,
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Subject' ,
name : 'subject' ,
type : 'string' ,
default : '' ,
description : ` The subject of the email notification for the issue. If this is not specified,
2020-10-22 06:46:03 -07:00
then the subject is set to the issue key and summary . ` ,
2019-11-29 14:30:00 -08:00
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Text Body' ,
name : 'textBody' ,
type : 'string' ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
default : '' ,
description : ` The subject of the email notification for the issue.
2020-10-22 06:46:03 -07:00
If this is not specified , then the subject is set to the issue key and summary . ` ,
2019-11-29 14:30:00 -08:00
} ,
2019-12-01 13:47:53 -08:00
] ,
2019-11-29 14:30:00 -08:00
} ,
{
displayName : 'Notification Recipients' ,
name : 'notificationRecipientsUi' ,
type : 'fixedCollection' ,
placeholder : 'Add Recipients' ,
typeOptions : {
multipleValues : false ,
} ,
description : 'The recipients of the email notification for the issue.' ,
default : { } ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'notify' ,
] ,
jsonParameters : [
false ,
] ,
} ,
} ,
options : [
{
name : 'notificationRecipientsValues' ,
displayName : 'Recipients' ,
values : [
{
displayName : 'Reporter' ,
name : 'reporter' ,
type : 'boolean' ,
description : ` Indicates whether the notification should be sent to the issue's reporter. ` ,
default : false ,
} ,
{
displayName : 'Assignee' ,
name : 'assignee' ,
type : 'boolean' ,
default : false ,
description : ` Indicates whether the notification should be sent to the issue's assignees. ` ,
} ,
{
displayName : 'Watchers' ,
name : 'watchers' ,
type : 'boolean' ,
default : false ,
description : ` Indicates whether the notification should be sent to the issue's assignees. ` ,
} ,
{
displayName : 'Voters' ,
name : 'voters' ,
type : 'boolean' ,
default : false ,
description : ` Indicates whether the notification should be sent to the issue's voters. ` ,
} ,
{
displayName : 'Users' ,
name : 'users' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getUsers' ,
} ,
default : [ ] ,
description : ` List of users to receive the notification. ` ,
} ,
{
displayName : 'Groups' ,
name : 'groups' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getGroups' ,
} ,
default : [ ] ,
description : ` List of groups to receive the notification. ` ,
} ,
2020-10-22 06:46:03 -07:00
] ,
2019-11-29 14:30:00 -08:00
2020-10-22 06:46:03 -07:00
} ,
] ,
2019-11-29 14:30:00 -08:00
} ,
{
displayName : 'Notification Recipients' ,
name : 'notificationRecipientsJson' ,
type : 'json' ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'notify' ,
] ,
jsonParameters : [
true ,
2020-10-22 06:46:03 -07:00
] ,
2019-11-29 14:30:00 -08:00
} ,
} ,
default : '' ,
description : 'The recipients of the email notification for the issue.' ,
} ,
{
displayName : 'Notification Recipients Restrictions' ,
name : 'notificationRecipientsRestrictionsUi' ,
type : 'fixedCollection' ,
placeholder : 'Add Recipients Restriction' ,
typeOptions : {
multipleValues : false ,
} ,
description : 'Restricts the notifications to users with the specified permissions.' ,
default : { } ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'notify' ,
] ,
jsonParameters : [
false ,
] ,
} ,
} ,
options : [
{
name : 'notificationRecipientsRestrictionsValues' ,
displayName : 'Recipients Restrictions' ,
values : [
{
displayName : 'Users' ,
name : 'users' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getUsers' ,
} ,
default : [ ] ,
description : ` List of users to receive the notification. ` ,
} ,
{
displayName : 'Groups' ,
name : 'groups' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getGroups' ,
} ,
default : [ ] ,
description : ` List of groups to receive the notification. ` ,
} ,
2020-10-22 06:46:03 -07:00
] ,
2019-11-29 14:30:00 -08:00
2020-10-22 06:46:03 -07:00
} ,
] ,
2019-11-29 14:30:00 -08:00
} ,
{
displayName : 'Notification Recipients Restrictions' ,
name : 'notificationRecipientsRestrictionsJson' ,
type : 'json' ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'notify' ,
] ,
jsonParameters : [
true ,
2020-10-22 06:46:03 -07:00
] ,
2019-11-29 14:30:00 -08:00
} ,
} ,
default : '' ,
description : 'Restricts the notifications to users with the specified permissions.' ,
} ,
2021-01-29 11:08:27 -08:00
/* -------------------------------------------------------------------------- */
/* issue:transitions */
/* -------------------------------------------------------------------------- */
2019-11-29 14:30:00 -08:00
{
displayName : 'Issue Key' ,
name : 'issueKey' ,
type : 'string' ,
required : true ,
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'transitions' ,
] ,
} ,
} ,
default : '' ,
description : 'Issue Key' ,
} ,
{
2019-12-01 13:47:53 -08:00
displayName : 'Additional Fields' ,
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
2019-11-29 14:30:00 -08:00
displayOptions : {
show : {
resource : [
'issue' ,
] ,
operation : [
'transitions' ,
] ,
} ,
} ,
2019-12-01 13:47:53 -08:00
options : [
{
displayName : 'Expand' ,
name : 'expand' ,
type : 'string' ,
default : '' ,
2021-11-25 09:10:06 -08:00
description : ` Use expand to include additional information about transitions in the response. This parameter accepts transitions.fields, which returns information about the fields in the transition screen for each transition. Fields hidden from the screen are not returned. Use this information to populate the fields and update fields in Transition issue. ` ,
2019-11-29 14:30:00 -08:00
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Transition ID' ,
name : 'transitionId' ,
type : 'string' ,
default : '' ,
description : 'The ID of the transition.' ,
2019-11-29 14:30:00 -08:00
} ,
2019-12-01 13:47:53 -08:00
{
displayName : 'Skip Remote Only Condition' ,
name : 'skipRemoteOnlyCondition' ,
type : 'boolean' ,
default : false ,
2021-10-27 13:00:13 -07:00
description : ` Indicates whether transitions with the condition Hide
2019-12-02 06:15:03 -08:00
From User Condition are included in the response . ` ,
2019-12-01 13:47:53 -08:00
} ,
] ,
2019-11-29 14:30:00 -08:00
} ,
2021-12-03 00:44:16 -08:00
] ;