Forums

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

Jira cleanup : Field Configurations

Mohammed Siyad
Contributor
October 7, 2022

Hi community,

Is there any way in cleaning up jira instance by removing unassociated field configurations.

I am trying to find a mechanism of deleting all field configurations that are not associated to project using groovy script and this needs to be scheduled as a job.

 

Thanking in advance.

1 answer

1 vote
Radek Dostál
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.
October 7, 2022

Nope, the way you plan on doing this is pretty much what you need to do to clean things up.

So it just comes down to a lot of testing before you're sure it works exactly as it should, plus some maintenance over time in case Jira/API changes, but that's that - no built-in cleaners for this sort of thing.

Nic Brough -Adaptavist-
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.
October 7, 2022

A script for this would take quite a long time to write, and not necessarily be the best thing you can do for your admins.

It is far easier, quicker, and safer for your admins to simply remember to clean up as they go - every now and then, as they reconfigure Jira in a way that means schemes might become unused, nip into admin and tidy up the dead ones.

Mohammed Siyad
Contributor
October 9, 2022

Hi @Nic Brough -Adaptavist- @Radek Dostál ,

We do have cleanup scripts for other schemes like field config schemes, workflow schemes, screens, permission and notifications. Except for this cake of field config.

But if we get hold of some snippet for finding field configs which are unassociated to project is perfect right to make the environment cleaner from unwanted data.

Suggest an answer

Log in or Sign up to answer