ahungry / org-jira

Bring Jira and OrgMode together
668 stars 125 forks source link

clock entries disappear when running org-jira-update-worklogs-from-org-clocks #328

Open robs-nice99 opened 1 year ago

robs-nice99 commented 1 year ago

Hello, I've been using org-jira for a couple of year. Thanks for the great work! It saves me a lot of time logging hours!

But recently my company moved from on-prems to the cloud environment, and I'm having some issues. I deleted all existing configuration and redone it.

The current problem is that when I run org-jira-update-worklogs-from-org-clocks all the times disappear. I have a customized jiralib-worklog-import--filters-alist to avoid seeing and updating other peoples logs.

'(jiralib-worklog-import--filters-alist
   (quote
    ((t "WorklogUpdatedByCurrentUser"
    (lambda
      (wl)
      (let-alist wl
        (when
        (and wl
             (string-equal
              (downcase
               (or jiralib-user-login-name user-login-name ""))
              (downcase
               (or \.updateAuthor\.name
               (car
                (split-string
                 (or \.updateAuthor\.emailAddress "")
                 "@"))
               ""))))
          wl))))
     (t "WorklogAuthoredByCurrentUser"
    (lambda
      (wl)
      (let-alist wl
        (when
        (and wl
             (string-equal
              (downcase
               (or jiralib-user-login-name user-login-name))
              (downcase
               (or \.author\.name
               (car
                (split-string
                 (or \.author\.emailAddress "")
                 "@"))))))
          wl)))))))

I also checked that the clock times are added to JIRA.

Any clue on whats going on?

robs-nice99 commented 1 year ago

This seems to be due to the worklog author filter not working correctly.