It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to change the content of a filter with a script ?

Laurent Bierge Feb 08, 2018

Hi,

I've done a script that allow me to replace an issue type by an other one in all my Jira.

It works, but it broke all the filter of the previous type.

Is there a way to change the content of all filter.

Like:

def filterMan = ComponentAccessor.filterManager()

def allFilters = filterMan.getAllFilters()

def jqlRequest

allFilters.each{

if ("issue Type" in it.getJqlRequest()){

jqlRequest = it.jqlRequest()

jqlRequest.replace("issue Type", "new issue Type")

it.setJqlRequest(jqlRequest)

}

}

My main issue consist in getting all the jql request of all the filter.

 

Regards,

Laurent

1 answer

0 votes
Mamta Verma Oct 11, 2018

Hi Laurent,

We also have a similar requirement for adding custom filters using script. Did you find any solution to it?

Thanks In Advance

Laurent Bierge Oct 11, 2018

Hi Mamta,

Nop, sorry :/

Regards,

Laurent

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Handling Opsgenie Alerts

Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers.   All alerts are ...

63 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you