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

Can not searchJira #131

Open
qeesung opened this issue Apr 22, 2016 · 1 comment
Open

Can not searchJira #131

qeesung opened this issue Apr 22, 2016 · 1 comment

Comments

@qeesung
Copy link

qeesung commented Apr 22, 2016

When I called node-jira API, I found that searchJira was not working properly. Then I checked the source code . and I change the code like this :

var options = {
    rejectUnauthorized: this.strictSSL,
    uri: this.makeUri('/search'),

-     method:'POST',
+     method: 'GET',
    json: true,
    followAllRedirects: true,
    body: {
        jql: searchString,
        startAt: optional.startAt || 0,
        maxResults: optional.maxResults || 50,
        fields: optional.fields || ["summary", "status", "assignee", "description"]
    }
};

then It works. Is my JIRA version wrong? Or here is the GET method should be used

@mtscout6
Copy link

This repo isn't as actively maintained anymore. Which is why my colleague and I forked it and pushed our own jira-client. I can vouch that our use of a POST action is working, we use this function within a tool we use internally: https://github.com/jira-node/node-jira-client/blob/master/src/jira.js#L409-L430.

Which Version of Jira are you using?

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