Forums

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

Jira Clean up - Status and Custom Field

Ojaswini Panse November 25, 2022

Currently we have a Jira clean up task and we are looking for the scripts that can be used to delete unused statuses and unused custom fields.
Is there any way that we can clean them with Script runner scripts. 

We are currently on the Data Center version v8.20.14

2 answers

2 accepted

2 votes
Answer accepted
Hubert Kut
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.
November 25, 2024

Hi @Ojaswini Panse

For cleanup custom fields, data management, Jira administration and much more I would recommend to give a try to our app.
Doctor Pro: Audit, Optimize & Manage Configuration for Jira
https://marketplace.atlassian.com/apps/1231705/doctor-pro-audit-optimize-manage-configuration-for-jira?hosting=cloud&tab=overview

If you have any questions feel free to reach out to us!
Best
Hubert

2 votes
Answer accepted
Vikrant Yadav
Community Champion
November 25, 2022

Hi @Ojaswini Panse 

For custom field , it gives the list of custom fields which are EMPTY and delete manually.  :-  https://gist.github.com/vikrantyadav11/07499f9ffbef3ee202feafce372c5b42

 

Give the list and delete the Status which are not mapped with Any workflow ( Credit goes to @Gonchik Tsymzhitov  :- 

https://github.com/gonchik/cleanup-scripts/blob/master/groovy/jira/issues/elements/statusCleaner.groovy

 

 

Thanks

V.Y

Ojaswini Panse December 1, 2022

Hi @Vikrant Yadav 

Thank you for providing the script 

Regards,
Ojaswini Panse

Like Vikrant Yadav likes this
Vikrant Yadav
Community Champion
December 1, 2022

You’re welcome 😉 

Suggest an answer

Log in or Sign up to answer