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

Issue when using an API token to log in #337

Open
rodjoseph opened this issue Sep 11, 2023 · 1 comment
Open

Issue when using an API token to log in #337

rodjoseph opened this issue Sep 11, 2023 · 1 comment

Comments

@rodjoseph
Copy link

I followed the steps for authentication outlined in the README. Because my organization uses two-factor authentication, I added the site, username, and API token. I get this error:

Fetching issues...
[error] request--callback: peculiar error

"JIRA_ERROR - see your *Messages* buffer for more details."

"JIRA_ERROR REQUEST: "

"/rest/api/2/search"

(:type "POST" :data "{\"jql\":\"assignee = currentUser() and resolution = unresolved ORDER BY\\n  priority DESC, created ASC\",\"maxResults\":100}")

"JIRA_ERROR RESPONSE: "

nil

error in process sentinel: JIRA_ERROR - see your *Messages* buffer for more details. [2 times]

It seems like someone on Reddit had this issue a while back, but there was no consensus on a resolution: https://www.reddit.com/r/emacs/comments/qy8z9r/anyone_using_orgjira_with_any_success_with_the/?rdt=39249.

@ahungry
Copy link
Owner

ahungry commented Sep 11, 2023

The first post on Reddit implies the assignee field wasn't configured on their instance (and is now a default in org-jira, but can be customized). I don't see that output in your error message - maybe upping the request.el log level will give some insights?

      (setq request-log-level 'blather)                                                                                            
      (setq request-message-level 'blather) 

I would also try to craft a plain old command-line equivalent and call the endpoint with curl - if that won't work, neither will org-jira (as it's really just relying on curl calls under the hood).

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

2 participants