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

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 Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,398 views 0 8
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