Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

On Atlassian plugins, who sets if a plugin is buyable, renewable...?

Charly [DEISER]
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.
June 7, 2012

I'm developing a jira plugin, on my license manager page i try to show some buttons:

if (uriFactory.isPluginBuyable()) {

this.velocityParameters.put("licenseUriBuy", uriFactory.getBuyPluginUri(licenseUri));

showButtons = true;

}

if (uriFactory.isPluginTryable()) {

this.velocityParameters.put("licenseUriTry", uriFactory.getTryPluginUri(licenseUri));

showButtons = true;

}

if (uriFactory.isPluginRenewable()) {

this.velocityParameters.put("licenseUriRenew", uriFactory.getRenewPluginUri(licenseUri));

showButtons = true;

}

i always get "false", my plugin it's not on the market yet, does it need to be on the market for this to work?

regards,

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
JohnA
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.
June 7, 2012

Hi Carlos,

These methods do not connect to external systems in order to determine whether the plugin is tryable or buyable. They simple check the status of the installed license. For example, if there is no license installed, isPluginBuyable will return true.

I can't think of a scenario that would cause all of these methods to return false. I might suggest creating a fresh plugin with atlas-create-jira-plugin, and using atlas-create-jira-plugin-module to automatically generate licensing code. That will certainly behave as expected, and from there it might be possible to determine what your plugin is doing differently that causes the problem.

cheers,

John

TAGS
AUG Leaders

Atlassian Community Events