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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

364 views 0 6
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