Fix issue with some issue types on Jira

This commit is contained in:
Jan Oberhauser 2020-09-28 14:36:32 +02:00
parent 2072f53316
commit 83f6f0c844

View file

@ -153,7 +153,7 @@ export class Jira implements INodeType {
}
} else {
for (const issueType of issueTypes) {
if (issueType.scope.project.id === projectId) {
if (issueType.scope === undefined || issueType.scope.project.id === projectId) {
const issueTypeName = issueType.name;
const issueTypeId = issueType.id;