Skip to content

Commit

Permalink
Updating org-jira-read-labels to allow passing in current-labels
Browse files Browse the repository at this point in the history
This will allow us to add/update our existing labels.
  • Loading branch information
djgoku committed Sep 28, 2024
1 parent 91f1140 commit bad31a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions org-jira.el
Original file line number Diff line number Diff line change
Expand Up @@ -1923,12 +1923,14 @@ that should be bound to an issue."
(car (rassoc action actions))
(user-error "You specified an empty action, the valid actions are: %s" (mapcar 'cdr actions)))))

(defun org-jira-read-labels ()
"Pick multiple labels to add to your jira issue."
(defun org-jira-read-labels (&optional current-labels)
"Pick multiple labels which will be added or updating existing
CURRENT-LABELS and save with the jira issue."
(unless current-labels (setq current-labels nil))
(if jiralib-labels-cache
(completing-read-multiple "Labels: " jiralib-labels-cache)
(completing-read-multiple "Labels: " jiralib-labels-cache nil nil current-labels)
(jiralib-get-labels)
(completing-read-multiple "Labels: " jiralib-labels-cache)))
(completing-read-multiple "Labels: " jiralib-labels-cache nil nil current-labels)))

(defvar org-jira-fields-history nil)
(defun org-jira-read-field (fields)
Expand Down

0 comments on commit bad31a6

Please sign in to comment.