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

Reuse Jira Components/Versions Page GUI

Umair Haroon
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.
April 23, 2014

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.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
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.
April 23, 2014

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

Umair Haroon
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.
April 27, 2014

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.

Umair Haroon
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.
April 27, 2014

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

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.
April 27, 2014

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.

Umair Haroon
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.
April 29, 2014

Thanks again Boris.

Going to go over the resources folder.

TAGS
AUG Leaders

Atlassian Community Events