mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user