Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

RestFul Table Example

Binisha October 6, 2013

Hi All,

Can anyone please guide me to develop a restful table plugin? The link provided in the documentation

https://developer.atlassian.com/display/AUI/RESTful+Table is not helping me much.

 

 

Thanks

 

 

6 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Boris Georgiev _Appfire_
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.
October 9, 2013

Download the JIRA source code and take a look at the jira-project-config-plugin - jira-project\jira-components\jira-plugins\jira-project-config-plugin\.

The versions and components pages are implemented using RESTful Table (src\main\resources\versions\, src\main\resources\components\)

If you need information on how to get the JIRA source see here - https://answers.atlassian.com/questions/161930/access-to-jira-source-code

0 votes
Mark H_ Williams April 14, 2016

I couldn't find jira-project-config-plugin in the JIRA source code but I did find the jar in Atlassian's public repository. I downloaded the jar, extracted it and then was able to see the js files used for the RESTful table.

 

https://maven.atlassian.com/content/groups/public/com/atlassian/jira/jira-project-config-plugin/

0 votes
Lukáš Maruniak December 20, 2015

This one is pretty self-explanatory:

RestFul Table example

0 votes
Keith Ballantyne July 6, 2015

Frédéric Esnault: My guess about the table reload (particularly the row reload) is that the OK response from the 'Put' rest method doesn't include all of the fields in the row that was updated.  If the response contains all the fields, the row will display the information correctly.

0 votes
Frédéric Esnault July 2, 2015

I agree. There is no RestfulTable working example anywhere.

The refapp does not even work. The documentation is really not clear, there is no clear example on how to catch events.

For example, i'm trying to reload my table after a line has been edited (because some values disappear after edit if i didn't edit them, i have to reload page to see them). So i want to catch the line edited event to refresh the whole table after, but i cannot find any example.

 

Even in issues about this, the answers are not clear. Here (https://ecosystem.atlassian.net/browse/AUI-3555) the guy who answers says we must bind to the model, but does not show how. He sends back to the documentation, which does NOT explain it at all.

 

Please Atlassian, help us !

N March 26, 2017

Hello

Can you reload table after a line has been edited?  How?

Dmitry Vergeles April 4, 2018

you can clean table's body whene added/edited rows and added new rows agene:

submit: function () {
AJS.$.ajax({
url: <api url add row>,
type: 'GET',
contentType: "application/json; charset=utf-8",
dataType: 'json'
}).done(function (data) {
JIRA.Admin.<yourTabel>.$tbody.html("");
rows = data.rows;
for (var i = 0; i < rows.length; i++) {
JIRA.Admin.<yourTabel>.addRow(rows[i]);
}
});
},
0 votes
Keith Ballantyne January 22, 2015

The path above doesn't work.  There is no jira-project-config-plugin in the source.

Like all RestfulTable examples, this too is a dead-end.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events