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
Community moderators have prevented the ability to post new answers.
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
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This one is pretty self-explanatory:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]);
}
});
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.