Velocity :-
AJS.${D}.ajax({
url: "http://localhost:2990/jira/rest/helloworld/",
type: "post",
dataType: "json",
context: document.body,
data: {val:'$(this).value'}
}).done(function(data) {
alert(data.name);
});
Java :-
class outer {
class inner extends JiraWebActionSupport {
@Path("/key")
@POST
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public string get()
{
}
}
Plugin Information :-
group-id | com.example.plugins.tutorial
|
artifact-id | tutorial-jira-add-content-to-view-issue-screen
|
version | 1.0-SNAPSHOT
|
package | com.example.plugins.tutorial
|