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

Filter list from listProjects - Support Query #312

Open
mcollie1 opened this issue Dec 3, 2020 · 3 comments
Open

Filter list from listProjects - Support Query #312

mcollie1 opened this issue Dec 3, 2020 · 3 comments

Comments

@mcollie1
Copy link

mcollie1 commented Dec 3, 2020

when getting the list of projects that a Jira user has access to (jira.listProjects()), the documentation isn't clear about using the query parameters supported by the api. For example, expand and properties.

I want to include issueTypes in the response, but limit the returned fields to issueTypes, key, and id.

Update

the params aren't supported by this library, for the method, but will support be added?

@randyho-kk
Copy link
Contributor

We currently have it implemented against /projects which is deprecated. To address this, we should implement against /project/search and support the expand parameter. Ideally we support all parameters.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get

@mcollie1
Copy link
Author

mcollie1 commented Dec 4, 2020

what would be the corresponding method within the library? Trying with jira.listProjects() and the above mentioned parameters are ignored, unless I'm constructing it wrong

https://github.com/jira-node/node-jira-client/blob/master/src/jira.js#L1126

@randyho-kk
Copy link
Contributor

@mcollie1 the library doesnt support what you want to do yet. I've added notes on what would be needed to add in order for the library to support it.

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

No branches or pull requests

2 participants