A Safari Extension which extracts information from a ticket of a Polarion system and adds it to a GitHub issue.
Written by David Linsin, July 2012.
Download the latest version of the Safari Extension and double click to install it.
- Open a new Tab and navigate to any Polarion ticket. Navigate to the print view, which you can find in the Action menu:
Cancel the printer dialog and right click anywhere in order to bring up the context menu item Copy Polarion Info. Clicking it will extract the following information:
- ID
- Title
- Description
- Type
- Author
- Priority
- Severity
- Error Version
- Target OS
- Repair Version
- Creation Date
- Url
Alternatively, after canceling the printer dialog, you can use the keyboard shortcut SHIFT+CTRL+P to extract the information directly.
- Create a new GitHub Issue and bring up the context menu by right clicking anywhere on the site. Click on the menu item Add Polarion Info which will set the following Polarion infos:
- the issues title to ID + title
- a block quote containing the information mentioned above and the ID as a link to the URL of the original Polarion ticket
Alternatively you can use the keyboard shortcut SHIFT+CTRL+O to add the information to the new issue directly.
Polarion can be customized and the fields extracted here might not suit your needs. You can easily customize
them by adopting dataFields_en in the file injected.js.
At the moment the only language supported is English. If you'd like to contribute another language, please open a pull request.
Under some circumstances the Submit new Issue button on a GitHub issue might stay disabled after inserting the Polarion information. As a workaround, you can simply add any character to the title of the issue, that's the reason why it's being focused right after insertion.
Please report issues via GitHub's issue tracker.
Polarion Issues Ext is licensed under the Apache 2 License, expect for shortcuts.js which is licenses under BSD and cvi_busy_lib.js which is under the Netzgestade Non-commercial Software License Agreement.
