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

Calling Search API #6

Open
johns10 opened this issue Aug 17, 2021 · 2 comments
Open

Calling Search API #6

johns10 opened this issue Aug 17, 2021 · 2 comments

Comments

@johns10
Copy link

johns10 commented Aug 17, 2021

I'm having trouble getting up and running with this library.

I'm trying:

ExJira.Request.get_all("/search", "", "jql=key=SD-1000")

It returns {:ok, nil}

The log says ExJira.Request: Sending GET to https://myjira.atlassian.net/rest/api/latest/search?jql=key=SD-1000 with using Elixir.HTTPotion

I've validated that https://myjira.atlassian.net/rest/api/latest/search?jql=key=SD-1000 returns valid JSON.

@johns10
Copy link
Author

johns10 commented Aug 17, 2021

Now I see, I have to specify the response key, like this:

ExJira.Request.get_all("/search", "issues", "jql=key=SD-1000")

@johns10
Copy link
Author

johns10 commented Aug 17, 2021

Or, I can just go ExJira.Project.get_issues("CSS") 🤦

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