Skip to content

freedomsponsors/freedomsponsors-jira-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the FreedomSponsors "SponsorThis" plugin for JIRA.

When installed, it will add a nice, discrete "Sponsor this" section on your JIRA's issue view, like the screenshot below.

The link leads to a FreedomSponsors page where the user can place a bounty for that issue.

You can also see it in action on Jenkins' JIRA.

Similar functionality is also available for Bugzilla (see the Bugzilla plugin) and the Github issue tracker (learn more)

SponsorThis

To install it, just get the latest version jar from the download section and upload to your JIRA using the plugin management feature.

If you're a developer and you want to build the plugin yourself, here's a few pointers that might save you some time:

After you have the plugin installed, you'll want to run:

atlas-mvn clean install

Depending on your environment, that command might fail because Maven won't find jta.jar on your local repository. That's because jta is not on the maven central repository. But it can be found on the java.net repository.

Add this section to your maven settings.xml file:

<activeProfiles>
  <!-- other profiles you might have -->
  <activeProfile>extrarepos</activeProfile>
</activeProfiles>

<profiles>
  <!-- other profiles you might have -->
  <profile>
  	<id>extrarepos</id>
    <repositories>
		<repository>
			<id>Java.net</id>
			<name>Java.net</name>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>always</updatePolicy>
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
				<checksumPolicy>fail</checksumPolicy>
			</snapshots>
			<url>http://download.java.net/maven/2</url>
			<layout>default</layout>
		</repository>
	</repositories>
  </profile>
</profiles>

Try again and see if it works this time.

If you can build it, here are a few other SDK commands you'll want to use:

  • atlas-run -- installs this plugin into JIRA and starts it on http://localhost:2990/jira (login/pass = admin/admin)
  • atlas-debug -- same as atlas-run, but allows a debugger to attach at port 5005
  • atlas-cli -- after atlas-run or atlas-debug, opens a Maven command line window: - 'pi' reinstalls the plugin into the running JIRA instance
  • atlas-help -- prints description for all commands in the SDK

If you find the above is somehow incorrect or incomplete, please reopen #2 and let us know.

For more information, refer to the Atlassian documentation: https://developer.atlassian.com/display/PLUGINFRAMEWORK/Writing+Atlassian+Plugins