Forums

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

Unable to run custom java class added as service

Lag Win
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2020

Greetings,

I want to add some functionalities to Jira Service Desk using Services but i'm facing some troubles. I've followed each step in Jira Development Cookbook, more specifically "Writing a service in JIRA" in Chapter 11.

I created my Java Class, imported all needed libraries and made it extends AbstractService. I wrote the XML file and implemented run() and getObjectConfiguration() methods. The latter just as the book states. I managed to register my service after dealing with xml config file location and now i'm able to see it in Services list and edit its rate of execution.

However i noticed the code inside run() is never called. I've already looked up on atlassian-jira.log and catalina.log files and there's any track of the service execution there.

By the way, I've tested the code itself and it works perfectly (It updates a custom field in an issue).

I have no clue of what could be going on, that's why i'm requesting your help.

Thank you in advance.

Best regards.

 

1 answer

1 accepted

0 votes
Answer accepted
JP _AC Bielefeld Leader_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 4, 2020

Hi,

you might want to ask this question in the developer community:

https://community.developer.atlassian.com/

Best

JP

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events