How to know what product your plugin is running on?

John Cromartie March 17, 2014

My plugin is intended to be used in several products, but will have *slightly* different behavior depending on the specific product. How can I achieve this?

1 answer

1 accepted

0 votes
Answer accepted
Boris Georgiev _Appfire_
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.
March 17, 2014

You might try com.atlassian.sal.api.ApplicationProperties.getDisplayName() but it does not seem very reliable.

Another option is to use com.atlassian.extras.api.ProductLicense.getProduct()

I can't give you specific examples, but I hope this will help.

Suggest an answer

Log in or Sign up to answer