Skip to content

Can not searchJira #131

Description

@qeesung

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions