########################################################################################## JILS-20: Enable Cross-Project Auto Linking when filters are present ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2016-04-29 15:00:46) Project: Jira Issue Listing Script (JILS) Reported By: btasker Assigned To: btasker Affected Versions: - 0.01b Targeted for fix in version: - 0.01b Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== The function _jiraMarkup_ currently only automatically creates links if the project key is the same as in the current issue (i.e a reference to an issue in the same project has been typed). It was implemented this way to prevent broken links if another project (with references in other issues) was archived. So, linking to EXAMPLE-1 from within EXAMPLE-2 will generate an auto-link, whilst linking to EXAMPLE-1 from ELPMAXE-3 will not. When the client filtering headers are present, we have a better idea of which projects are likely to exist (no guarantee they do, though) and so could enable autolinking to issues with those project keys. An alternative solution would be to do what JIRA does - identify any string that looks like an issue key, check the database to see if it exists and then convert to a link if it does. Seems inefficient though. ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2014-11-04 07:10:51 btasker ----------------------------------------------------------------------------------------- _Note: This was previously implemented in commit 042818f (https://github.com/bentasker/Jira-Issue-Listing/commit/042818f08a17fcfbfc077466b372cfd898cdde73), but was reverted in JILS-19 as it caused some pretty serious issues_ ----------------------------------------------------------------------------------------- 2014-11-12 01:07:01 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'In Progress' ----------------------------------------------------------------------------------------- 2014-11-12 01:34:54 btasker ----------------------------------------------------------------------------------------- Implemented and tested. It'd be good to devise a way to enable cross-project auto linking if no filters are present, perhaps by detecting that that's the case and then populating the header accordingly. ----------------------------------------------------------------------------------------- 2014-11-12 01:35:26 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: Jira-Issue-Listing Commit: daee06023cbbfdedd2c2ff0f4021f5e64357017a Author: Ben Tasker