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

How to add a button to the plugin install finished dialog?

user name April 1, 2014

I've seen tempo show a getting started button on the dialog, which pops up after the plugin is installed.

How did they do that?

Is it maybe something like this? Do they do some javascript magic?link: https://answers.atlassian.com/questions/145147/is-there-a-way-to-inject-javascript-onto-the-view-page-of-an-issue-based-on-the-workflow-step

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 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.
April 2, 2014
It is not js magic. This is a upm feature. To do that you have to specify post.install.url in the atlassian-plugin.xml of your plugin. See that answer
user name April 2, 2014

configure.url works, but the post.install.url does not seem to do anything. could you provide sample code maybe?

It is supposed to be like this?

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}"
	plugins-version="2">
	<plugin-info>
		<param name="post.install.url">/my_url</param>

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.
April 2, 2014

Here's a sample from Configuration Manager for JIRA

<atlassian-plugin key="com.botronsoft.jira.configurationmanager"
	name="${project.name}" plugins-version="2">
	<plugin-info>
		....
        <param name="configure.url">/plugins/servlet/com.botronsoft.jira.configurationmanager/license</param>
        <param name="post.install.url">/secure/ConfigurationManagerGetStarted.jspa</param>
        <param name="post.update.url">/secure/ConfigurationManagerGetStarted.jspa</param> 
		....
	</plugin-info>
	...

user name April 2, 2014

Ah I was out of date..I had v2.13.2 of UPM.

"The post.install.url and post.update.url require UPM 2.3 or higher. If a plugin defines these URLs but is installed or updated within a UPM 2.2 instance or earlier, they are ignored."

user name April 2, 2014

"If a customer downloads an add-on JAR and uses the Upload Plugin installation technique, UPM ignores these parameters."

That's my problem I guess.

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.
April 2, 2014

That's possible. You may try to change the license to test if the button is there. I've noticed than the button usually appears when you change the license. Also if you upload a new version it should be there also.

user name April 2, 2014

For now, I'm just making dev builds of my app, that we would test internally, using jar files (upload add-on button on the Manage add-ons page). I don't want to include licensing yet.

I've tried bumping up the version, but that did not work also.

TAGS
AUG Leaders

Atlassian Community Events