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 edited

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 edited

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
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events