Hello,
I implemented a restful table in a wenb panel in a JIRA plugin. I want the restful table to filter records according to the current issue. How can I do that?
Community moderators have prevented the ability to post new answers.
What do you mean by resful table? Where do you get the data for this table from?Pick up the issue key from the page (AJS.Meta.get('issue-key')) and send to the rest interface to filter.
I get the data from an active object. What do you mean with "send to the rest interface to filter"? Do you have a short sample code please? Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
RestfulTable is implemented using Backbone. So you could override the parse() method and override there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you tell me where I find the method parse() ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The parse method is in Backbone: http://backbonejs.org/#Collection-parse
You would need to have a look at the RestfulTable code to see how to override it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.