The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Maintanence automation

Ludvig Hede
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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

TAGS
AUG Leaders

Atlassian Community Events