I want to create a maintenance routine in ATL cloud.
I want to archive Team Managed projects where the last issue update is older than X month.
actions:
- filter: team managed projects
- order by last issue update
This is the rest API call that fix two of three actions above: {{baseUrl}}/rest/api/3/project/search?expand=insight&orderBy=+lastIssueUpdatedTime![
|30x30]
Anyone know if it’s possible to filter a rest API call on team managed projects?
Next steps:
archive fetched projects
fine-tune the fetch process to only fetch ™projects older than X months
Hello @LudvigHede
There is an EXPERIMENTAL function called propertyQuery for Get Project Pagination that would potentially solve the issue, I wasn’t able to get it to work with what I assume is the property for Team Managed projects.
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-projects/#api-rest-api-2-project-search-get
If you’re able to give the run some time and dependent on the amount of project you have in your subscription, I would suggest using Get Project Pagination Endpoint to store all projects in an array and do a query/loop through the array for the Team managed attribute (simplified)
Hi @TonyLanglet, thanks for responding to this!
I was into propertyQuery aswell but I wasn’t sure how to write the rest API query… 
The property to be used is “style” and the options is “classic” or “next-gen”.
You are correct, I wasn’t aware of the changes as they are quiet different from how the original classic and next-gen projects worked.
So I guess you would be able to do the iteration of all project over the style in that case but it still doesn’t answer your question completely where you’d like to use a filter/search for the specific attribute.
According to the documentation it would look something like this
"https://<domain>.atlassian.net/rest/api/3/project/search?propertyQuery=[style]=classic"
or
"https://<domain>.atlassian.net/rest/api/3/project/search?propertyQuery=[values].style=classic"
I can’t get that to work though 
1 Like
Thanks! I will do some more tests and tweks and see if I can make it .