Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robs-nice99 opened this issue Jul 20, 2023 · 1 comment

Comments

@robs-nice99
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant