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

1 accepted

2 votes
Answer accepted
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 1, 2022

You’re welcome 😉 

0 votes
Hubert Kut 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

Suggest an answer

Log in or Sign up to answer