How to fetch Jira projects that have a certain project property set?

Does anyone know a Jira Cloud API endpoint that allows me to fetch a list of Jira projects that have a certain project property set?

It seems that there is no way to do this directly and the only way I found so far is to use the deprecated Get all projects endpoint with the properties parameter. Then filter the results server-side.

Some insights from my investigation:

  • The newer Get projects paginated endpoint to search projects does not support the properties parameter. Strangely though the response JSON does contain the properties property - it seems to be always empty though.
  • Jira expressions do not seem to help in this case. They only allow querying in the context of a single project.

I hope I missed something. If not, changing our implementation to the deprecated endpoint seems to be the only option for now.

@Atlassian any chance to get the properties parameter supported for the Get projects paginated endpoint?

@kkercz sorry if you are not the right person to ask (Would you mind forwarding this to the person in charge if it’s not you?). Any chance that Atlassian can add support for the properties parameter for the paginated projects endpoint? I couldn’t find any open issue for this.

This definitely sounds like something we would like to add, both returning properties in the response and requesting only projects that have a given property. Could you create a dedicated ACJIRA issue so that we can track it properly?

Thanks for your reply @kkercz. I never realized we can create feature requests in ACJIRA. Somehow assumed all projects are locked. Anyways, I created https://ecosystem.atlassian.net/browse/ACJIRA-2087