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

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

This widget could not be displayed.

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!

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

527 views 3 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you