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

Patch ejira-core to refer to users via accountId #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KAction
Copy link

@KAction KAction commented Apr 9, 2022

Hi! Thank you for this nice piece of software.

It may be specific to configuration of my corporate jira (I mean, clearly if assigning issues and making mentions were not working at all, people would notice, although #37 mentions same GDPR error as I have).

It is very odd, but mentions format we have right now does not work for me, I did some experimenting involving
web browser and mentioning innocent people, and came to format I propose in this pull request.

I am not sure what is GDPR strict mode is, but probably referring to users by accoutId instead of full names is better in general, since it will less likely to break on people with complicated Unicode names or people with same names or something like this.

Closing this PR with works fine for me is okay; as I said this may be related to my particular instance of jira (I am not admin of it), but I though it would be nice to inform you about these issues.

There must be some changes to, but user mentions require using
"accountId" field from whatever data we receive from API listing all
users.

Also, assigning issues no longer works by full name, complaining about
GDPR, so I had to pass accountId to jiralib2-assign-issue function,
and redefine it to use it as following:

  (defun jiralib2-assign-issue (issue-key account)
    "Assign issue with ISSUE-KEY to USERNAME."
    (jiralib2-session-call (format "/rest/api/2/issue/%s/assignee" issue-key)
			   :type "PUT"
			   :data (json-encode `((accountId . ,account)))))
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

Successfully merging this pull request may close these issues.

1 participant