I need to delete a Scriptrunner behaviour from multiple instances of JIRA. I would like to do this programmatically using groovy. Is this possible?
I have done multiple google searches to no avail.
It is possible - on Server/DC, you can do almost anything with Scriptrunner, including scripting amending Scriptrunner settings such as script calls, behaviours, and the config of canned functions you're reusing.
However, you'll need to do a lot of digging through the scriptrunner API to work out how to make a call to delete a behaviour, and you're going to need to either give your script a direct pointer to what you're trying to amend, or code something that can work it out.
In general, you're probably going to find it faster and easier to go into the UI to find the things you want to kill off, and when you find one, simply delete it with the next click.
It's definitely not common. I don't remember seeing a similar use case, but I'm curious how many instances you're referring to and what others have experienced.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not counting the Test/Development instances we are currently supporting 17, with more in the planning stages
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.