Adding a comment fails with Symbol's function definition is void: filename
#286
Closed
Description
Hi! When trying to add a comment via org-jira-add-comment
, I get the above error.
(defun org-jira-add-comment (issue-id filename comment)
"For ISSUE-ID in FILENAME, add a new COMMENT string to the issue region."
(interactive
(let* ((issue-id (org-jira-get-from-org 'issue 'id))
(filename (org-jira-filename)) ;; <<<<<------- This seems to be the offending line
(comment (read-string (format "Comment (%s): " issue-id))))
(list issue-id filename comment)))
(lexical-let ((issue-id issue-id)
(filename filename))
(ensure-on-issue-id-with-filename issue-id filename
(goto-char (point-max))
(jiralib-add-comment
issue-id comment
(cl-function
(lambda (&key _data &allow-other-keys)
(ensure-on-issue-id-with-filename issue-id filename
(org-jira-update-comments-for-current-issue))))))))
When just evaluating (org-jira-filename)
in the issue buffer, it seems to return the correct file name, so I'm a bit lost as to what the error may be.
Any help would be appreciated!
Metadata
Assignees
Labels
No labels