How to archive projects in Jira, so they would dis

2020-05-26 03:50发布

问题:

We have bunch of old projects in Jira Studio that we want to keep online (in case, if we need to return to them for whatever reason), but I don't want them to appear anywhere in our daily Jira usage, i.e. dashboards, project picker etc.

I followed the official instructions from here, but those archived projects are still visible through Projects picker on top of the page. Is there way to make them disappear?

回答1:

The navbar only shows the most recently viewed projects. Your old project should eventually disappear from that list, but definitely at its own pace. You have to remove all permissions to the project for them to disappear completely.

Several frustrations such as yours pushed me to develop a series of steps to repeat whenever we have a project that's ready to be archived so that the project is both marked clearly as archived and hidden from daily use:

  1. Make sure that are all issues left in the project are either closed or moved to another project

  2. Set project lead to the user ‘Retired’ --- we created a fake user called 'Retired' so that when looking at the list of Projects in administration page we can quickly spot the retired ones

  3. Set permission scheme to ‘Retired’ --- we defined a permission scheme called 'Retired' that gave all access to the project administrators role and view-only access to the project users role

  4. Clear all users from the project roles --- when you need access later on, you can then just edit the project roles for a particular project without affecting all archived projects --- this also allows you to slowly retire a particular project from visibility by slowly removing permissions from groups of users

  5. Change workflow scheme to ‘Default’ --- it's very frustrating having to update the workflow that is attached to several archived projects

  6. Set project category to ‘Retired’



回答2:

This information is governed by the database:

SELECT * from userhistoryitem where username = 'username' and entitytype = 'Project' order by lastviewed desc;

   id   | entitytype | entityid |    username    |  lastviewed   | data
--------+------------+----------+----------------+---------------+------
 227698 | Project    | 10220    |    username    | 1301405322572 |
 133838 | Project    | 10151    |    username    | 1301402682690 |
 168381 | Project    | 10227    |    username    | 1301344271235 |
  45043 | Project    | 10180    |    username    | 1301340216454 |
 208541 | Project    | 10140    |    username    | 1301330686000 |
 210826 | Project    | 10090    |    username    | 1301318618545 |
 161779 | Project    | 10091    |    username    | 1301318570239 |
 225332 | Project    | 10221    |    username    | 1301247960400 |
 102017 | Project    | 10100    |    username    | 1301084781755 |
 215912 | Project    | 10222    |    username    | 1301084768265 |
 223485 | Project    | 10130    |    username    | 1301079161189 |
 181173 | Project    | 10010    |    username    | 1301071156042 |
 216181 | Project    | 10240    |    username    | 1300903565503 |
 147978 | Project    | 10161    |    username    | 1300804150829 |
 216174 | Project    | 10243    |    username    | 1300724821587 |
 215914 | Project    | 10223    |    username    | 1300724728560 |
 212712 | Project    | 10210    |    username    | 1300480230937 |
  96497 | Project    | 10060    |    username    | 1300480223816 |
 209995 | Project    | 10092    |    username    | 1300295744684 |
(19 rows)

The top row (most recent lastviewed) is the first project on the list. I don't think you have DB access in JIRA Studio though.



标签: jira