TheFirstAvenger / elixir-ex_jira

Elixir wrapper for the JIRA REST API
MIT License
3 stars 8 forks source link

Calling Search API #6

Open johns10 opened 3 years ago

johns10 commented 3 years ago

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 commented 3 years ago

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

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

johns10 commented 3 years ago

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