Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Maintanence automation

Ludvig Hede March 28, 2023

I want to create a maintenance automation in ATL cloud.
I want to archive Team Managed projects were the last issue update is older than X month.
actions:
:checked: fetch jira projects
:question: filter: team managed projects
:checked: 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:question:  Anyone know if it’s possible to filter a rest API call on team managed projects?

Next steps:
========
:arrow_right: archive fetched projects
:arrow_right: fine-tune the fetch process to only fetch (TM)projects older than X months

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2023

Hi @Ludvig Hede 

I do not believe there is a way to filter that project REST API call.  One possible work-around is to:

  • iterate over the projects,
  • call Lookup Issues with JQL ordered by updated DESC, and
  • check the latest one (or if there are no issues) to decide if the project may be archived.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events