Forums

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

find all post functions where an issue type is used

Peter Newton January 31, 2022

Hi,

I need to remove an issue type from Jira but before doing this, I need to check all existing workflows and see if it was used in a post-function, validation, etc

Anyone have a scriptunner script that can help me with this, please?

Thanks

P.N.

2 answers

Peter Newton January 31, 2022

I understand that publicity is the core of any business but still, I specifically mentioned that I need a scriptrunner script, not an app...

0 votes
Rilwan Ahmed
Community Champion
January 31, 2022

Try below in DB. Replace '0000' with required fieldID

Select workflowname, DESCRIPTOR from jiraworkflows where DESCRIPTOR LIKE '%customfield_00000%'
OR DESCRIPTOR LIKE '%{0000}%'
OR DESCRIPTOR LIKE '%cf[0000]%';

You can remove DESCRIPTOR  from select part. It gives along text, but will have where exactly the field is used.

Peter Newton January 31, 2022

I posted wrongly initially. It is about issue type that needs to be removed not custom field

Thanks

Suggest an answer

Log in or Sign up to answer