Forums

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

How to access to Jira service property values?

SuhailM
Contributor
May 9, 2013

I have written a background service which extends AbstractService.I have defined some properties in this service which i need to access for example startday of the service.

Is there any API which would return the service object properties if i give the class name of the service or anything??

2 answers

1 accepted

0 votes
Answer accepted
SuhailM
Contributor
May 14, 2013

I found a solution to use ApplicationProperties APi to access this value.Thanks.

0 votes
Tibor Hegyi _META-INF_
Atlassian Partner
May 9, 2013

Hi,

AbstractService has a numerous "getProperty" type methods that you can use to retrieve service parameters upon the key of the parameter.

Cheers,

Tibor

SuhailM
Contributor
May 9, 2013

I want to access this values outside this class, in a different plugin.I have imported the plugin via component-import method i need to access the method/variable thats hold the value.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events