How to manually remove service in Jira

Hi

I am trying to figure out how to manually remove service from JIRA MySQL database?

I am cloning the Production JIRA instance for the QA Purposes using automates script.

During the Clone I am cleaning up a lot of stuff like changing the Name, URL, removing App links.

Also I would like to remove couple of services to be sure that they are not running on QA instance.

I can delete them manually but it will be nice to delete them prior starting instance after populating database from production dump.

Regards,

Areg

2 answers

This widget could not be displayed.

I hope that I figured it out:

 

SELECT ID
FROM serviceconfig
WHERE CLAZZ = 'com.onresolve.jira.groovy.GroovyService'

 

Based on "propertytype" field in "propertyentry" table determine which kind of entry it is - 5 is strings in "propertystring" table.

SELECT *
FROM propertyentry
WHERE ENTITY_NAME = 'ServiceConfig'
  AND ENTITY_ID IN
  (SELECT ID
   FROM serviceconfig
   WHERE CLAZZ = 'com.onresolve.jira.groovy.GroovyService'
  )
DELETE
from propertystring
where ID in
  (select ID
   from propertyentry
   where ENTITY_NAME = 'ServiceConfig'
     and ENTITY_ID in
     (select ID
      from serviceconfig
      where CLAZZ = 'com.onresolve.jira.groovy.GroovyService'
     )
  )
DELETE
FROM propertyentry
WHERE ENTITY_NAME = 'ServiceConfig'
  AND ENTITY_ID IN
  (SELECT ID
   FROM serviceconfig
   WHERE CLAZZ = 'com.onresolve.jira.groovy.GroovyService'
  );
DELETE
FROM serviceconfig
WHERE CLAZZ = 'com.onresolve.jira.groovy.GroovyService';

 

Hope this will help if anyone need to do this too.

 

Regards,

Areg

This widget could not be displayed.

The "serviceconfig" table is storing initial information. I would like to be sure that deleting the row from it will delete and disable service.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you