mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
🐛 Fix Jira expand (#2341)
* 🐛 Jira expects array for JSON parameter * 🔨 Add loadOptions for users * Small change to #2339 Co-authored-by: pemontto <pemontto@gmail.com>
This commit is contained in:
parent
d9661e353e
commit
f430c385b4
|
@ -661,7 +661,7 @@ export const issueFields = [
|
|||
{
|
||||
displayName: 'Expand',
|
||||
name: 'expand',
|
||||
type: 'options',
|
||||
type: 'multiOptions',
|
||||
default: '',
|
||||
options: [
|
||||
{
|
||||
|
|
|
@ -594,7 +594,11 @@ export class Jira implements INodeType {
|
|||
body.jql = options.jql as string;
|
||||
}
|
||||
if (options.expand) {
|
||||
body.expand = options.expand as string;
|
||||
if (typeof options.expand === 'string') {
|
||||
body.expand = options.expand.split(',');
|
||||
} else {
|
||||
body.expand = options.expand;
|
||||
}
|
||||
}
|
||||
if (returnAll) {
|
||||
responseData = await jiraSoftwareCloudApiRequestAllItems.call(this, 'issues', `/api/2/search`, 'POST', body);
|
||||
|
|
Loading…
Reference in a new issue