Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Confluence
  • Questions
  • 異なる2つのプラグイン間のActiveObjects参照について(How to use same ActiveOnjects in two different plugins)

異なる2つのプラグイン間のActiveObjects参照について(How to use same ActiveOnjects in two different plugins)

ShoichiYashirp
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!
June 13, 2019

環境

・Java Development Kit 8
・Atlassian-SDK-6.3.10
・Confluence-6.7.1

 

自分の作成しているプラグインから、参照したいAOにアクセスできるServiceクラスを経由してActiveObjectsの片方向参照をしたいです。

すでに似たような質問が挙げられていたので、参考にして記述したコードです
https://community.atlassian.com/t5/Jira-questions/how-to-use-same-active-object-tables-in-two-different-plugin/qaq-p/19569

 

 

変更した内容は以下の通りです。

・参照したいAOへのアクセスを行うServiceクラスに、@ExportAsServiceアノテーションを追加

・参照させたいプラグインのソース変更点

pom.xml

<dependencies>タグを閉じた後の<plugins>内

tempsnip.png

atlassian.plugin.xml ↓

javaのServiceクラスを指定するcomponentタグのオプションで public="true"を追記

(参照先プラグインインストール時、ここでValidationエラーが起きているっぽい)

 

参照したいプラグインのソース変更点(参照させたい側のpomの<Export-Package>タグと同じ階層に下記を追記)

tempsnip2.png

 

参照先Serviceクラスは、参照元のServiceクラスと同じように初期化、フィールド定義を行っています

 

同じようなプラグイン間でのAO参照を経験されている方など、解決法ご存じの方いましたら、よろしくお願いします。

 

 

1 answer

0 votes
K. Yamamoto
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2019

Yashiro様

こんにちは、アトラシアンの山本です。

恐縮ながら日本語でプラグイン開発の質問に答えられるものがいないため https://community.developer.atlassian.com/ で英語での再投稿をご検討いただけますでしょうか。もし承諾いただければ私どもで翻訳のうえ代理で質問を投稿することも可能です。

お役にたてず申し訳ございません。

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events