Hi there,
On 18 Sep 2015 at 15:25:44, PATEL, ABDULKADAR ([email protected](mailto:[email protected])) wrote: > Hi all, > > Sorry to bug all of you again and again with the same requirement. > But I am also helpless till I get it done. > > I have ebelow use case : > > 1. User selects some text on an xwiki page and hits some keyboard shortcut > say Alt+ctrl+N > > 2. This opens a popup dialog like shown below : > > [file:///Users/vmassol/Library/Containers/it.bloop.airmail.beta11/Data/Library/Application > > Support/Airmail/General/Local/1442819908355112192/Attachments/[email protected]] > > > > 3. As you can see in the screenshot, it displays list of projects, issue > types from JIRA server. > > Issue summary field is pre-populated with the selected text from xwiki page. > > 4. Once user submits this dialog, an issue is created in JIRA and a link will > be created on xwiki page besides selected > > text. > > So far I have achieved 1,2 and 3 but not able to achieve 4 > One option I thought of is to create an annotation for the selected text with > text as a link to JIRA issue > But I don't understand how to achive this from javascript code. > I have written javascript code in > webapps/xwiki/resources/js/xwiki/xwiki-min.js file > > Please suggest me an approach to achive point no 4. > Also suggest me if there is a better and cleaner approach. I’m not sure I understand the problem. Step 4 seems easy. You just need a form action which calls a wiki page (possibly the current page passing some parameter) and then using Velocity for example to create the JIRA issue using the JIRA REST API. Thanks -Vincent > Thanks & Regards, > ____________________________________________________________________ > [file:///Users/vmassol/Library/Containers/it.bloop.airmail.beta11/Data/Library/Application > > Support/Airmail/General/Local/1442819908355112192/Attachments/[email protected]]Abdulkadar > Patel > Consultant | GESBU _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

