How can I get metadata in jira report plugin?

Pavol_Lackovič March 31, 2014

Hi

How can I get metadata in my own report plugin? (no groovy, but Java)

Object service  = serviceosgiManager.getServiceTracker("com.osoboo.jira.metadata.MetadataService").getService()

What type is service?

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Deleted user April 1, 2014

Hi Pavol,

the Service implements:

com.osoboo.jira.metadata.MetadataService

but you can use (see: https://bitbucket.org/aspall/jira-metadata-addonsample):

	<component-import key="metadataService" name="JIRA Metadata Service"
		interface="com.osoboo.jira.metadata.MetadataService">
		<description></description>
	</component-import>

within your atlassian-plugin.xml

regards

Andreas

Pavol_Lackovič April 2, 2014

Thanks you Andreas :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events