jira.js icon indicating copy to clipboard operation
jira.js copied to clipboard

How should I use `propertyQuery` with multiple properties when searching for projects

Open MrRefactoring opened this issue 1 year ago • 1 comments

Discussed in https://github.com/MrRefactoring/jira.js/discussions/253

Originally posted by irzhywau March 21, 2023 Im actually using this API endpoint https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get to retrieve projects with some properties definied on them.

having 1 property query seems working fine, but once I add another property key nothing display. probably I wrongly set the query. so I'm wondering how to set such a property query correctly when using multiple properties

eg. propertyQuery=[prop1].nested.value=yes works

then now I want to combine the above with [prop2].value=test?

  • I've tried concat with both but obviously not working propertyQuery=[prop1].nested.value=yes&[prop2].value=test
  • tried with propertyQuery=[prop1].nested.value=yes%26[prop2].value=test not working
  • tried propertyQuery=[prop1].nested.value=yes AND [prop2].value=test still not working

How should I setup this correctly?

MrRefactoring avatar Aug 30 '23 12:08 MrRefactoring

FYI, according to this comment from an Atlassian staff member in March this year, searching by multiple properties isn't possible.

There's an issue to track here: https://ecosystem.atlassian.net/jira/software/c/projects/ACJIRA/issues/ACJIRA-2667

jbrunton avatar Dec 21 '23 16:12 jbrunton