Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Jira plugin to add a tab page to the Activity tab of an issue

Rob McElroy
Contributor
February 20, 2013

Hi -

I want to create a Jira plugin that adds a tab page to the Activity tab. I want this new tab page to query an external data source that is exposed as a service returning Json.

I would rather write javascript that performs an ajax request to load this data and parse it.

Can someone point me in the right direction to get started.

Do I need a Java class for this?

Thanks,

2 answers

1 vote
codelab expert
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 4, 2013

Create a plugin module "ISSUE TAB PANEL":

Then create a javascript file and implement this code.

function getBoards() {

	AJS.$.ajax({
	  url: "https://yourserver.de/rest/greenhopper/1.0/rapidviews/list",
	  type: "GET",
	  dataType: "json",
	  success: function(response){

	    		for (n = 0; n < response.views.length; n++) {
				 // do something
	  }
	});

}

Embed this file via WebResourceManager in your velocity template.

This AJAX call get all rapid views from Greenhopper. I hope, this will help you!

Rob McElroy
Contributor
March 4, 2013

Hi Mathias -

Thanks for your response.

What I want to do is add a tab page to the Activity tab of an issue. I'm not sure how the code you listed will do that.

Where would this code go?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events