Describe the problem/error/question
Getting error Cannot assign to read only property 'name' of object 'Error: Referenced node is unexecuted' in an if/then block. Trying to do this in code (rather than merge) because of the position in overall workflow:
let jiraIssue = null
if($('Create an issue') != null) {
jiraIssue = $('Create an issue').item.json
} else {
jiraIssue = $('Check for Existing Open Issue').item.json
}
// calculate a browser URL from the issue
const baseUrl = jiraIssue.self.replace(/\/rest\/api\/.*/,'')
const browserUrl = baseUrl +"/browse/" + jiraIssue.key
return {"json": {
"jiraIssueApiUrl": jiraIssue.self,
"jiraIssueBrowserUrl": browserUrl
}}
What is the error message (if any)?
Cannot assign to read only property ‘name’ of object ‘Error: Referenced node is unexecuted’
Please share your workflow
Error is in the final node, where I’m trying to get the URL of the JIRA issue that we either updated or created in the prior nodes.
Information on your n8n setup
- Version 1.108.1