Hi,
I am trying to create a link/page in a Project->Administration section which will be similar to the Components link/page there, except it will only have a name and description.
User will be able to add a row and delete it or edit it , exactly the functionality that is provided in the components/versions page in project->Administration.
I would like to use the name and description (i.e a row) the user adds to populate a custom field value(i.e I would use these values in my own way), I would just like to reuse the functionality of the components page (with adjustments).
Is it possible to use the components / versions page in Jira with modification?
Whats the best approach for this?
Thanks.
Community moderators have prevented the ability to post new answers.
Versions and Components pages are just pages using AUI RESTful table with a REST service behind. I don't think you can reuse much, but you can use them as a reference for creating your own version. Download the JIRA source and look at jira-project\jira-components\jira-plugins\jira-project-config-plugin
https://docs.atlassian.com/aui/latest/docs/restfulTable.html
Thanks @Boris.
I would like to use the same interface as the one already being used in components, so the link you shared seems to be helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I went over the source at the path you mentioned. I also went over the link.
The link is very easy to understand. Unfortunately I could not find any reference to any RestFulTable as mentioned in the link.
I looked at the files in the tab folder , including ComponentTab and the classes it inherits from and interfaces in the heirarchy, however there doesnt seem to be mention of the RESTful table.
Could you let me know which files would make it clear that it's conforming to the link you shared?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So you've looked the JAVA code but the most of what you need is in the resources - jira-project\jira-components\jira-plugins\jira-project-config-plugin\src\main\resources\component
The JAVA code you need as a backend is a REST service. The other part is soy and js code which is located in the folder I pointed you to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again Boris.
Going to go over the resources folder.
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.